You are here

function scs_menu in Simplenews Content Selection 6

Same name and namespace in other branches
  1. 8 scs.module \scs_menu()
  2. 6.2 scs.module \scs_menu()
  3. 7.2 scs.module \scs_menu()
  4. 7 scs.module \scs_menu()

File

./scs.module, line 11

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'] = 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,
  );
  return $items;
}