You are here

function jammer_messages_menu in Jammer 7

Same name and namespace in other branches
  1. 6 jammer_messages.module \jammer_messages_menu()

Implements hook_menu().

Return value

An array of menu items.

File

./jammer_messages.module, line 34
Filter status messages set by drupal_set_message().

Code

function jammer_messages_menu() {
  $items['admin/config/user-interface/jammer_messages'] = array(
    'title' => 'Message Jammer',
    'description' => 'Filter status messages.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_jammer_messages_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['admin/config/user-interface/jammer_messages/delete/%jammer_message'] = array(
    'title' => 'Message jammer delete',
    'description' => 'Delete filter on status messages.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'jammer_messages_settings_confirm_delete',
      5,
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}