File: /home/nexper/public_html/crm/custom/modules/Users/Ext/Layoutdefs/layoutdefs.ext.php
<?php
//WARNING: The contents of this file are auto-generated
global $modules_exempt_from_availability_check;
$modules_exempt_from_availability_check['SecurityGroups']='SecurityGroups';
$layout_defs['Users']['subpanel_setup']['securitygroups'] = array(
'top_buttons' => array(array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'SecurityGroups', 'mode' => 'MultiSelect'),),
'order' => 100,
'sort_by' => 'name',
'sort_order' => 'asc',
'module' => 'SecurityGroups',
'refresh_page'=>1,
'subpanel_name' => 'default',
'get_subpanel_data' => 'SecurityGroups',
'add_subpanel_data' => 'securitygroup_id',
'title_key' => 'LBL_SECURITYGROUPS_SUBPANEL_TITLE',
);
$layout_defs['UserRoles']['subpanel_setup']['securitygroups'] = array(
'top_buttons' => array(array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => 'SecurityGroups', 'mode' => 'MultiSelect'),),
'order' => 100,
'sort_by' => 'name',
'sort_order' => 'asc',
'module' => 'SecurityGroups',
'refresh_page'=>1,
'subpanel_name' => 'default',
'get_subpanel_data' => 'SecurityGroups',
'add_subpanel_data' => 'securitygroup_id',
'title_key' => 'LBL_SECURITYGROUPS_SUBPANEL_TITLE',
);
global $current_user;
if(is_admin($current_user)){
$layout_defs['Users']['subpanel_setup']['securitygroups']['subpanel_name'] = 'ForUsers';
}else{
$layout_defs['Users']['subpanel_setup']['securitygroups']['top_buttons'] = array();
}
?>