Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

create_new_user_dash()

Parameters

ColumnTypeDefaultDescription
$user

Location

include/dash_functions.php lines 898 to 905

Definition

 
 
function create_new_user_dash($user)
     {
     
$tiles sql_query("SELECT dash_tile.ref as 'tile',dash_tile.title,dash_tile.url,dash_tile.reload_interval_secs,dash_tile.link,dash_tile.default_order_by as 'order' FROM dash_tile WHERE dash_tile.all_users = 1 AND ref NOT IN (SELECT dash_tile FROM usergroup_dash_tile) AND (dash_tile.allow_delete=1 OR (dash_tile.allow_delete=0 AND dash_tile.ref IN (SELECT DISTINCT user_dash_tile.dash_tile FROM user_dash_tile))) ORDER BY default_order_by");
     foreach(
$tiles as $tile)
         {
         
add_user_dash_tile($user,$tile["tile"],$tile["order"], false);
         }
     }

This article was last updated 15th July 2020 02:35 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.