You are here

function ds_info in Display Suite 6

Same name and namespace in other branches
  1. 6.3 includes/ds.modules.inc \ds_info()
  2. 6.2 includes/ds.modules.inc \ds_info()

@file Info about a module.

1 string reference to 'ds_info'
_ds_ui_menu in includes/ds.registry.inc
Return menu items and import default settings.

File

includes/ds.info.inc, line 8
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.');
  }
}