You are here

function ctools_export_ui_load in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 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 686
CTools primary module file.

Code

function ctools_export_ui_load($item_name, $plugin_name) {
  $return =& ctools_static(__FUNCTION__, FALSE);
  if (!$return) {
    ctools_include('export-ui');
    $plugin = ctools_get_export_ui($plugin_name);
    if ($plugin) {

      // Get the load callback.
      $item = ctools_export_crud_load($plugin['schema'], $item_name);
      return empty($item) ? FALSE : $item;
    }
  }
  return $return;
}