You are here

function civicrm_entity_menu in CiviCRM Entity 7.2

Implements hook_menu().

Return value

array

File

./civicrm_entity.module, line 16

Code

function civicrm_entity_menu() {
  $items = array();
  $items['admin/structure/civicrm-entity'] = array(
    'title' => 'CiviCRM Entity',
    'description' => 'Available CiviCRM Entities',
    'type' => MENU_NORMAL_ITEM,
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer CiviCRM Entity',
    ),
    'page callback' => 'system_admin_menu_block_page',
    'file path' => drupal_get_path('module', 'system'),
    'file' => 'system.admin.inc',
  );
  $items['admin/structure/civicrm-entity/settings'] = array(
    'title' => 'Configure CiviCRM Entity',
    'description' => 'Configure CiviCRM settings, such as enabled entities',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'civicrm_entity_admin_settings_form',
    ),
    'access arguments' => array(
      'administer CiviCRM Entity',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'civicrm_entity.admin_form.inc',
  );
  $items['civicrm-entity/autocomplete/%'] = array(
    'title' => 'CiviCRM entity autocomplete',
    'page callback' => 'civicrm_entity_autocomplete',
    'page arguments' => array(
      2,
    ),
    'access callback' => 'civicrm_entity_op_access',
    'access arguments' => array(
      'edit',
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}