function references_dialog_get_search_view_attachables in References dialog 7
Get instances appropriate for a search view on a particular entity type.
Parameters
string $entity_type: Name of the entity type.
Return value
array An array of appropriate instances.
1 call to references_dialog_get_search_view_attachables()
- references_dialog_plugin_display::options_form in views/
references_dialog_plugin_display.inc - Provide the default form for setting options.
File
- ./
references_dialog.module, line 217 - This the main module file.
Code
function references_dialog_get_search_view_attachables($entity_type = NULL) {
$attachables = module_invoke_all('references_dialog_search_attachables');
// @todo Add an alter here.
if (isset($entity_type)) {
return $attachables[$entity_type];
}
else {
return $attachables;
}
}