function properties_menu in Dynamic properties 7
Implements hook_menu().
File
- ./
properties.module, line 35 - This module provides a dynamic property field that can contain an unlimited number of attribute value pairs.
Code
function properties_menu() {
$items['admin/config/content/properties'] = array(
'title' => 'Properties',
'description' => 'Administer categories and attributes',
'access callback' => 'properties_admin_access',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_attributes_list',
),
'file' => 'properties.admin.inc',
);
$items['admin/config/content/properties/attributes'] = array(
'title' => 'Attributes',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_attributes_list',
),
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'attributes',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/content/properties/attributes/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -20,
);
$items['admin/config/content/properties/attributes/add'] = array(
'title' => 'Add attribute',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_attributes_form',
),
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'attributes',
),
'type' => MENU_LOCAL_ACTION,
);
$items['admin/config/content/properties/attributes/edit/%properties_attribute'] = array(
'title' => 'Edit attribute',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_attributes_form',
6,
),
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'attributes',
),
'type' => MENU_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/content/properties/attributes/delete/%properties_attribute'] = array(
'title' => 'Delete attribute',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_attributes_delete',
6,
),
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'attributes',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/content/properties/categories'] = array(
'title' => 'Categories',
'page callback' => 'properties_admin_categories_list',
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'categories',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/config/content/properties/categories/list'] = array(
'title' => 'List',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -20,
);
$items['admin/config/content/properties/categories/add'] = array(
'title' => 'Add category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_categories_form',
),
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'attributes',
),
'type' => MENU_LOCAL_ACTION,
);
$items['admin/config/content/properties/categories/edit/%properties_category'] = array(
'title' => 'Edit category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_categories_form',
6,
),
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'categories',
),
'type' => MENU_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/content/properties/categories/delete/%properties_category'] = array(
'title' => 'Delete category',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'properties_admin_categories_delete',
6,
),
'file' => 'properties.admin.inc',
'access callback' => 'properties_admin_access',
'access arguments' => array(
'categories',
),
'type' => MENU_LOCAL_TASK,
);
$items['properties_autocomplete/%'] = array(
'title' => 'Properties autocomplete',
'type' => MENU_CALLBACK,
'page callback' => 'properties_autocomplete_js',
'page arguments' => array(
1,
2,
),
'access callback' => TRUE,
);
return $items;
}