You are here

function references_dialog_get_attachable in References dialog 7

Get an attachable by name.

Parameters

$entity_type: The type of entity the attacable is attached to.

$name: The name of the attachable.

1 call to references_dialog_get_attachable()
references_dialog_search_view in ./references_dialog.module
Menu callback for fetching a search view.

File

./references_dialog.module, line 237
This the main module file.

Code

function references_dialog_get_attachable($entity_type, $name) {
  $attachables = module_invoke_all('references_dialog_search_attachables');
  return $attachables[$entity_type][$name];
}