You are here

function styleguide_styleguide_theme_info_alter in Style Guide 7

Same name and namespace in other branches
  1. 6 styleguide.api.php \styleguide_styleguide_theme_info_alter()

Alter display information about a theme for Style Guide.

This function accepts the 'info' property of a $theme object. Currently, only the 'description' element of the $theme_info array is used by Style Guide.

Note that the 'description' element will be run through t() automatically.

Parameters

&$theme_info: Theme information array.

$theme: The machine name of this theme.

Return value

No return value. Modify $theme_info by reference.

File

./styleguide.api.php, line 99

Code

function styleguide_styleguide_theme_info_alter(&$theme_info, $theme) {
  if ($theme == 'stark') {
    $theme_info['description'] = 'A basic theme for development.';
  }
}