You are here

function notifications_admin_manage_subscriptions in Notifications 7

Same name and namespace in other branches
  1. 6.4 notifications.admin.inc \notifications_admin_manage_subscriptions()

Menu callback: subscriptions administration.

1 string reference to 'notifications_admin_manage_subscriptions'
notifications_menu in ./notifications.module
Implementation of hook_menu().

File

./notifications.admin.inc, line 9

Code

function notifications_admin_manage_subscriptions($form, &$form_state) {
  module_load_include('manage.inc', 'notifications');
  if (isset($form_state['values']['operation']) && $form_state['values']['operation'] == 'delete') {
    if ($selected = array_filter($form_state['values']['subscriptions'])) {

      // $form_state['values']['subscriptions']
      $list = Notifications_Subscription_List::build_sids(array_keys($selected));
      return notifications_subscription_list_form($form, $form_state, 'delete', $list);
    }
  }
  $form['filter'] = notifications_manage_subscriptions_filter_form(TRUE);
  $form['#submit'][] = 'notifications_manage_subscriptions_filter_form_submit';
  $form['#theme'] = 'notifications_manage_subscriptions_filter_form';
  $form['admin'] = notifications_manage_subscriptions_form();
  return $form;
}