function ds_info in Display Suite 6.2
Same name and namespace in other branches
- 6.3 includes/ds.modules.inc \ds_info()
- 6 includes/ds.info.inc \ds_info()
Provide information about a module to the admin interface.
1 string reference to 'ds_info'
- _ds_ui_menu in includes/
ds.registry.inc - Return menu items and import default settings.
File
- includes/
ds.modules.inc, line 11 - Info about a module.
Code
function ds_info($module) {
$info = '';
// API info about this module.
$api_info = ds_api_info($module);
$help = isset($api_info['help']) ? $api_info['help'] : array();
// Let other modules add info.
drupal_alter('ds_info', $help, $module);
// General info (if any).
if (!empty($help)) {
$info = theme('item_list', $help);
}
if (!empty($info)) {
return $info;
}
else {
return t('No general info found.');
}
}