function notifications_manage_user_subscriptions in Notifications 6
Same name and namespace in other branches
- 6.4 notifications.manage.inc \notifications_manage_user_subscriptions()
- 6.2 notifications.manage.inc \notifications_manage_user_subscriptions()
- 6.3 notifications.manage.inc \notifications_manage_user_subscriptions()
Menu callback: user subscriptions management
1 string reference to 'notifications_manage_user_subscriptions'
- notifications_menu in ./
notifications.module - Implementation of hook_menu().
File
- ./
notifications.manage.inc, line 27 - Common functions for bulk management of subscriptions
Code
function notifications_manage_user_subscriptions($form_state, $account) {
module_load_include('inc', 'notifications', 'notifications.pages');
if (isset($form_state['values']['operation']) && $form_state['values']['operation'] == 'delete') {
$form = notifications_multiple_delete_confirm($form_state, array_filter($form_state['values']['subscriptions']));
return $form;
}
$form = notifications_subscriptions_filter_form();
$form['filters']['#title'] = t('Filter');
$form['filters'] += array(
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['#theme'] = 'notifications_subscriptions_filter_form';
$form['admin'] = notifications_manage_subscriptions_form($account);
return $form;
}