function ajax_form_entity_menu in Ajax form entity 7
Same name and namespace in other branches
- 7.x ajax_form_entity.module \ajax_form_entity_menu()
Implements hook_menu().
File
- ./
ajax_form_entity.module, line 36 - Ajaxify entity forms.
Code
function ajax_form_entity_menu() {
$items = array();
$items['admin/config/content/ajax-form-entity'] = array(
'title' => 'Ajax form entity configs',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'ajax_form_entity_form',
),
'description' => 'Configuration of ajax form entity',
'access arguments' => array(
'administer ajax for entity',
),
'file' => 'ajax_form_entity.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['ajax-form-entity-edit/%'] = array(
'page callback' => 'ajax_form_entity_entity_edit_callback',
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'file' => 'ajax_form_entity.callback.inc',
'type' => MENU_CALLBACK,
);
$items['ajax-form-entity-delete/%'] = array(
'page callback' => 'ajax_form_entity_entity_delete_callback',
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'file' => 'ajax_form_entity.callback.inc',
'type' => MENU_CALLBACK,
);
$items['ajax-form-entity-cancel/%'] = array(
'page callback' => 'ajax_form_entity_entity_cancel_callback',
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}