function ctools_plugin_get_info in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 includes/plugins.inc \ctools_plugin_get_info()
Ask a module for info about a particular plugin type.
2 calls to ctools_plugin_get_info()
- ctools_plugin_get_class in includes/
plugins.inc - Get a class from a plugin, if it exists. If the plugin is not already loaded, try ctools_plugin_load_class() instead.
- ctools_plugin_get_function in includes/
plugins.inc - Get a function from a plugin, if it exists. If the plugin is not already loaded, try ctools_plugin_load_function() instead.
File
- includes/
plugins.inc, line 772 - Contains routines to organize and load plugins. It allows a special variation of the hook system so that plugins can be kept in separate .inc files, and can be either loaded all at once or loaded only when necessary.
Code
function ctools_plugin_get_info($module, $type) {
$all_info = ctools_plugin_get_plugin_type_info();
return isset($all_info[$module][$type]) ? $all_info[$module][$type] : array();
}