function messaging_xmpp_user in Messaging 6.3
Same name and namespace in other branches
- 6.4 messaging_xmpp/messaging_xmpp.module \messaging_xmpp_user()
- 6.2 messaging_xmpp/messaging_xmpp.module \messaging_xmpp_user()
Implementation of hook_user()
Changed name of account to user so we know what is being performed on
File
- messaging_xmpp/
messaging_xmpp.module, line 101 - XMPP Messsaging. Messaging method plug-in
Code
function messaging_xmpp_user($type, $edit, &$account, $category = NULL) {
switch ($type) {
case 'form':
if ($category == 'account' && variable_get('messaging_peruser_xmpp_offline', 1)) {
$form['messaging']['messaging_xmpp_offline'] = array(
'#type' => 'select',
'#title' => t('XMPP offline messages'),
'#default_value' => messaging_user_setting('xmpp_offline', $account, 0),
'#options' => messaging_xmpp_user_offline_options($account),
'#description' => t('Select what to do when you are offline and an XMPP message is sent to you.'),
);
return $form;
}
break;
}
}