function ctools_export_ui_load in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 ctools.module \ctools_export_ui_load()
Menu _load hook.
This function will be called to load an object as a replacement for %ctools_export_ui in menu paths.
File
- ./
ctools.module, line 978 - CTools primary module file.
Code
function ctools_export_ui_load($item_name, $plugin_name) {
$return =& drupal_static(__FUNCTION__, FALSE);
if (!$return) {
ctools_include('export-ui');
$plugin = ctools_get_export_ui($plugin_name);
$handler = ctools_export_ui_get_handler($plugin);
if ($handler) {
return $handler
->load_item($item_name);
}
}
return $return;
}