Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

add_user_dash_tile()

Parameters

ColumnTypeDefaultDescription
$user
$tile
$order_by
$reorder TRUE

Location

include/dash_functions.php lines 866 to 879

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 12th July 2020 06:35 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.