function session_limit_rules_event_info in Session Limit 6.2
Same name and namespace in other branches
- 7.2 session_limit.rules.inc \session_limit_rules_event_info()
Implements hook_rules_event_info().
File
- ./
session_limit.rules.inc, line 11 - Rules integration with session_limit.
Code
function session_limit_rules_event_info() {
$items = array();
$items['session_limit_collision'] = array(
'label' => t('User logs in and has too many active sessions'),
'arguments' => array(
'account' => array(
'type' => 'user',
'label' => t('The user who logged in.'),
),
'session_id' => array(
'type' => 'text',
'label' => t('The session id.'),
),
),
'module' => t('Session Limit'),
);
$items['session_limit_disconnect'] = array(
'label' => t('User is logged out by a newer session'),
'arguments' => array(
'account' => array(
'type' => 'user',
'label' => t('The user who was logged out.'),
),
'session_id' => array(
'type' => 'text',
'label' => t('The session id.'),
),
),
'module' => t('Session Limit'),
);
return $items;
}