function session_limit_invoke_session_limit in Session Limit 6
Same name and namespace in other branches
- 6.2 session_limit.module \session_limit_invoke_session_limit()
- 7.2 session_limit.module \session_limit_invoke_session_limit()
3 calls to session_limit_invoke_session_limit()
- session_limit_init in ./
session_limit.module - Implementation of hook_init().
- session_limit_page in ./
session_limit.module - Display/Delete sessions..
- session_limit_page_submit in ./
session_limit.module - Handler for submissions from session_limit_page().
File
- ./
session_limit.module, line 450 - Limits multiple sessions per user.
Code
function session_limit_invoke_session_limit($session, $op) {
$return = array();
foreach (module_implements('session_limit') as $name) {
$function = $name . '_session_limit';
$result = $function($session, $op);
if (isset($result) && is_array($result)) {
$return = array_merge($return, $result);
}
elseif (isset($result)) {
$return[] = $result;
}
}
return $return;
}