function hook_references_dialog_entity_admin_paths in References dialog 7
Provide the admin paths for where different entity types can be edited. This is used by references dialog to work properly with the entity reference module.
Return value
An array keyed by entity type containing the following keys:
- 'add': Where the admin page is located to add a new entity of this type.
- 'edit': Where the admin page is located to edit an entity of this type.
You can use the following replacement patterns: [bundle-sanitized], [entity_id], [bundle]
Related topics
1 function implements hook_references_dialog_entity_admin_paths()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_references_dialog_entity_admin_paths()
- references_dialog_get_admin_path in ./
references_dialog.module - Get the admin path (edit/add) page for a particular entity.
File
- ./
references_dialog.api.php, line 74 - This file contains documentation on hooks provided by this module.
Code
function hook_references_dialog_entity_admin_paths() {
return array(
'node' => array(
'add' => 'node/add/[bundle-sanitized]',
'edit' => 'node/[entity_id]/edit',
),
);
}