function entity_embed_menu in Entity Embed 7
Same name and namespace in other branches
- 7.3 entity_embed.module \entity_embed_menu()
- 7.2 entity_embed.module \entity_embed_menu()
Implements hook_menu().
File
- ./
entity_embed.module, line 34 - Provides a CKEditor plugin and text filter for embedding and rendering entities.
Code
function entity_embed_menu() {
$items['entity-embed/preview/%entity_embed_filter_format'] = array(
'title' => 'Preview embedded entity',
'page callback' => 'entity_embed_preview',
'page arguments' => array(
2,
),
'access callback' => '_entity_embed_preview_format_access',
'access arguments' => array(
2,
),
'delivery callback' => 'ajax_deliver',
'theme callback' => 'ajax_base_page_theme',
'type' => MENU_CALLBACK,
);
$items['entity-embed/dialog/entity-embed/%entity_embed_filter_format/%entity_embed_embed_button'] = array(
'title' => 'Add/Edit embedded entity',
'page callback' => 'entity_embed_dialog',
'page arguments' => array(
3,
4,
),
'access callback' => '_entity_embed_button_is_enabled',
'access arguments' => array(
3,
4,
),
'file' => 'entity_embed.admin.inc',
'delivery callback' => 'ajax_deliver',
'theme callback' => 'ajax_base_page_theme',
'type' => MENU_CALLBACK,
);
$items['entity-embed/autocomplete-entity/%entity_embed_filter_format/%entity_embed_embed_button'] = array(
'title' => 'Autocomplete for embedded entities',
'page callback' => 'entity_embed_autocomplete_entity',
'page arguments' => array(
2,
3,
),
'access callback' => '_entity_embed_button_is_enabled',
'access arguments' => array(
2,
3,
),
'type' => MENU_CALLBACK,
);
return $items;
}