function advuser_init in Advanced User 7.3
Same name and namespace in other branches
- 6.3 advuser.module \advuser_init()
Implementation of hook_init().
Related topics
File
- ./
advuser.module, line 59 - Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.
Code
function advuser_init() {
if (user_access('administer advuser') || user_access('receive email advuser') || user_access('send email advuser') || user_access('access advuser')) {
drupal_add_css(drupal_get_path('module', 'advuser') . '/css/advuser.css', 'module');
// The persistent data for the module is stored in the session.
$advuser =& $_SESSION['advuser'];
if (!isset($advuser)) {
$advuser = array(
'accounts' => array(),
'deselected' => array(),
'filters' => array(),
'phase' => array(
'id' => 0,
),
'return' => FALSE,
'selectall' => FALSE,
);
}
}
}