You are here

function simplemeta_menu in Simple Meta 6.2

Same name and namespace in other branches
  1. 7.2 simplemeta.module \simplemeta_menu()
  2. 7 simplemeta.module \simplemeta_menu()

Implements hook_menu()

File

./simplemeta.module, line 24

Code

function simplemeta_menu() {
  $items = array();
  $items['admin/content/simplemeta'] = array(
    'title' => 'SimpleMeta',
    'page callback' => 'simplemeta_meta_list',
    'access arguments' => array(
      'administer simplemeta',
    ),
    'file' => 'simplemeta.admin.inc',
  );
  $items['admin/content/simplemeta/list'] = array(
    'title' => 'SimpleMeta List',
    'page callback' => 'simplemeta_meta_list',
    'access arguments' => array(
      'administer simplemeta',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'simplemeta.admin.inc',
    'weight' => 0,
  );
  $items['admin/content/simplemeta/add'] = array(
    'title' => 'Add SimpleMeta',
    'page callback' => 'simplemeta_add',
    'page arguments' => array(),
    'access arguments' => array(
      'administer simplemeta',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'simplemeta.admin.inc',
    'weight' => 1,
  );
  $items['admin/content/simplemeta/%simplemeta_meta/edit'] = array(
    'title' => 'Add SimpleMeta',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simplemeta_meta_form',
      3,
    ),
    'access arguments' => array(
      'administer simplemeta',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/content/simplemeta/%simplemeta_meta/delete'] = array(
    'title' => 'Delete SimpleMeta',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simplemeta_meta_delete_confirm',
      3,
    ),
    'access arguments' => array(
      'administer simplemeta',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'simplemeta.admin.inc',
  );

  //  $items['admin/settings/simplemeta'] = array(
  //    'title' => 'SimpleMeta Settings',
  //    'page callback' => 'drupal_get_form',
  //    'page arguments' => array('simplemeta_settings_form'),
  //    'access arguments' => array('administer simplemeta'),
  //    'file' => 'simplemeta.admin.inc',
  //  );
  return $items;
}