You are here

function view_custom_table_menu in Views Custom Table 7

Implements hook_menu().

File

./view_custom_table.module, line 44
view_custom_table.module

Code

function view_custom_table_menu() {
  $items['admin/structure/views/custom_table'] = array(
    'title' => 'View Custom Table',
    'page callback' => 'view_custom_table_available_custom_tables_for_views',
    'access callback' => 'view_custom_table_administer_callback',
    'type' => MENU_LOCAL_TASK,
    'file' => 'view_custom_table.admin.inc',
  );
  $items['admin/structure/views/custom_table/all'] = array(
    'title' => 'All Custom Table',
    'page callback' => 'view_custom_table_all_available_custom_tables_for_views',
    'access arguments' => array(
      'administer all custom table in views',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'view_custom_table.admin.inc',
  );
  $items['admin/structure/views/custom_table/own'] = array(
    'title' => 'My Custom Table',
    'access callback' => 'view_custom_table_administer_callback',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'view_custom_table.admin.inc',
  );
  $items['admin/structure/views/custom_table/add'] = array(
    'title' => 'Add Custom Table',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'view_custom_table_add_custom_table_to_view_form',
    ),
    'access arguments' => array(
      'add custom table in views',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'view_custom_table.admin.inc',
  );
  $items['admin/structure/views/custom_table/%/edit'] = array(
    'title' => 'Edit Custom Table',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'view_custom_table_edit_custom_table_form',
      4,
    ),
    'access callback' => 'view_custom_table_administer_callback',
    'type' => MENU_CALLBACK,
    'file' => 'view_custom_table.admin.inc',
  );
  $items['admin/structure/views/custom_table/%/relations'] = array(
    'title' => 'Edit Custom Table',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'view_custom_table_custom_table_update_relations_form',
      4,
    ),
    'access callback' => 'view_custom_table_administer_callback',
    'type' => MENU_CALLBACK,
    'file' => 'view_custom_table.admin.inc',
  );
  $items['admin/structure/views/custom_table/%/views'] = array(
    'title' => 'Edit Custom Table',
    'page callback' => 'view_custom_table_custom_tables_views',
    'page arguments' => array(
      4,
    ),
    'access callback' => 'view_custom_table_administer_callback',
    'type' => MENU_CALLBACK,
    'file' => 'view_custom_table.admin.inc',
  );
  $items['admin/structure/views/custom_table/%/delete'] = array(
    'title' => 'Delete Custom Table',
    'page callback' => 'view_custom_table_delete_custom_table_to_view_callback',
    'page arguments' => array(
      4,
    ),
    'access callback' => 'view_custom_table_administer_callback',
    'type' => MENU_CALLBACK,
    'file' => 'view_custom_table.admin.inc',
  );
  return $items;
}