You are here

function ds_get_display_handlers in Display Suite 6.3

Fetch metadata for all ds_display plugins.

Return value

An array of arrays with information about all available display handlers

1 call to ds_get_display_handlers()
ds_module_list in includes/ds.modules.inc
Provide information about all installed modules

File

./ds.module, line 209

Code

function ds_get_display_handlers() {
  static $plugins = NULL;
  if (!isset($plugins)) {
    ctools_include('plugins');
    $plugins = ctools_get_plugins('ds', 'ds_display');
    foreach ($plugins as $key => $plugin) {
      if (isset($plugin['types_callback']) && function_exists($plugin['types_callback'])) {
        $plugins[$key]['types'] = call_user_func($plugin['types_callback']);
      }
    }
  }
  return $plugins;
}