You are here

function birthdays_menu in Birthdays 6

Same name and namespace in other branches
  1. 5 birthdays.module \birthdays_menu()
  2. 7 birthdays.module \birthdays_menu()

Implementation of hook_menu().

File

./birthdays.module, line 186
The Birthdays module allows users to add their birthday to their profile. It lists birthdays on a seperate page and in different blocks. Users can receive an e-mail on their birthday automatically, and the administrator can receive daily reminders of…

Code

function birthdays_menu() {
  $items['admin/settings/birthdays'] = array(
    'title' => 'Birthdays',
    'description' => 'Set user birthday mail and toggle user mail, upcoming birthdays mail and more.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'birthdays_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'birthdays.admin.inc',
  );
  $items['admin/settings/birthdays/settings'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/birthdays/sync'] = array(
    'title' => 'Synchronize',
    'description' => 'Synchronize birthdays information of Profile module and Birthdays module. Used either when updating to a newer version of Birthdays or when integrating with an existing Profile Field.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'birthdays_sync_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'birthdays.sync.inc',
  );
  $items['birthdays'] = array(
    'title' => 'Birthdays',
    'description' => 'List the birthdays of all users.',
    'page callback' => 'birthdays_view_page',
    'access arguments' => array(
      'access birthdays',
    ),
    'type' => MENU_SUGGESTED_ITEM,
    'file' => 'birthdays.page.inc',
  );
  return $items;
}