function entityconnect_menu in Entity connect 7.2
Same name and namespace in other branches
- 7 entityconnect.module \entityconnect_menu()
Implements hook_menu().
File
- ./
entityconnect.module, line 39 - Handles the main hooks used by entityconnect.
Code
function entityconnect_menu() {
$items = array();
$items['admin/entityconnect/return/%'] = array(
'description' => 'Return item for original entity.',
'page callback' => 'entityconnect_return',
'page arguments' => array(
3,
),
'access callback' => 'entityconnect_check_access',
'file' => 'includes/entityconnect.menu.inc',
);
$items['admin/entityconnect/edit/%'] = array(
'description' => 'Edit item for entity referenced.',
'page callback' => 'entityconnect_edit',
'page arguments' => array(
3,
),
'access callback' => 'user_access',
'access arguments' => array(
'entityconnect edit button',
),
'file' => 'includes/entityconnect.menu.inc',
);
$items['admin/entityconnect/add/%'] = array(
'title' => "Choose type to create and add",
'description' => 'Add item for entity referenced.',
'page callback' => 'entityconnect_add',
'page arguments' => array(
3,
),
'access callback' => 'user_access',
'access arguments' => array(
'entityconnect add button',
),
'file' => 'includes/entityconnect.menu.inc',
);
$items['admin/config/content/entityconnect'] = array(
'title' => 'Entity Connect',
'description' => 'Configure default values for Entity Reference fields using Entity Connect',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'_entityconnect_admin_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'includes/entityconnect.admin.inc',
);
return $items;
}