Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

add_user_dash_tile()

Parameters

ColumnTypeDefaultDescription
$user
$tile
$order_by
$reorder TRUE

Location

include/dash_functions.php lines 890 to 903

Definition

 
function add_user_dash_tile($user,$tile,$order_by,$reorder=TRUE)
    {
    if(!
is_numeric($user)||!is_numeric($tile)){return false;}
    if(!
is_numeric($order_by))
        {
        
$order_by=append_user_position($user);
        
$reorder=FALSE;
        }
        
    
sql_query("INSERT INTO user_dash_tile (user,dash_tile,order_by) VALUES (".$user.",".$tile.",".$order_by.")  ON DUPLICATE KEY UPDATE order_by='" $order_by "'");
        
    if(
$reorder){reorder_user_dash($user);}
    return 
true;
    }

This article was last updated 3rd December 2020 13:05 Europe/London time based on the source file dated 3rd November 2020 16:55 Europe/London time.