You are here

function site_alert_menu in Site Alert 7

Create the page for and link to the form.

File

./site_alert.module, line 138
Core functionality for the Site Alert module.

Code

function site_alert_menu() {
  $items = array();
  $items['admin/config/system/alerts'] = array(
    'title' => 'Site Alert Settings',
    'description' => 'Toggle alerts on/off and configure the title and contents',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'site_alert_admin',
    ),
    'access arguments' => array(
      'administer alerts settings',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['ajax/site_alert'] = array(
    'title' => 'Site Alert',
    'page callback' => 'site_alert_get_alert',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
    'theme callback' => 'ajax_base_page_theme',
  );
  return $items;
}