You are here

function notifications_ui_menu_alter in Notifications 6

Same name and namespace in other branches
  1. 6.4 notifications_ui/notifications_ui.module \notifications_ui_menu_alter()
  2. 6.2 notifications_ui/notifications_ui.module \notifications_ui_menu_alter()
  3. 6.3 notifications_ui/notifications_ui.module \notifications_ui_menu_alter()

Implementation of hook_menu_alter()

File

notifications_ui/notifications_ui.module, line 71
User Interface for subscriptions modules

Code

function notifications_ui_menu_alter(&$items) {
  foreach (notifications_subscription_types() as $type => $info) {
    if (!empty($info['user page'])) {
      $items[$info['user page']]['access callback'] = 'notifications_ui_access_page';
      $items[$info['user page']]['access arguments'] = array(
        $type,
        1,
      );
    }
  }
}