function scs_menu in Simplenews Content Selection 6.2
Same name and namespace in other branches
- 8 scs.module \scs_menu()
- 6 scs.module \scs_menu()
- 7.2 scs.module \scs_menu()
- 7 scs.module \scs_menu()
Implements hook_menu()
File
- ./
scs.module, line 11 - Select Drupal content to create a newsletter
Code
function scs_menu() {
$items = array();
$items['admin/settings/simplenews/scs'] = array(
'title' => 'Simplenews Content Selection',
'description' => 'Configure what node types could be used for SCS, ...',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scs_admin_settings_form',
),
'access arguments' => array(
'administer scs',
),
'file' => 'scs.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/content/scs_node_selection/nodes'] = array(
'title' => t('From nodes'),
'description' => t('Select nodes to create a newsletter'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scs_node_selection',
),
'access arguments' => array(
'scs create newsletters',
),
'file' => 'scs.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['admin/content/scs_node_selection'] = array(
'title' => 'Simplenews Content Selection Creator',
'description' => 'Select nodes to create a newsletter',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scs_node_selection',
),
'access arguments' => array(
'scs create newsletters',
),
'file' => 'scs.pages.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/content/scs_sort_nodes'] = array(
'title' => 'Simplenews Content Select Sorter',
'description' => 'Sort the nodes like you want them in the newsletter',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'scs_sort_nodes',
),
'access arguments' => array(
'scs create newsletters',
),
'file' => 'scs.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}