function 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

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;
}