You are here

function hook_styleguide_alter in Style Guide 6

Same name and namespace in other branches
  1. 8 styleguide.api.php \hook_styleguide_alter()
  2. 7 styleguide.api.php \hook_styleguide_alter()
  3. 2.x styleguide.api.php \hook_styleguide_alter()

Alter styleguide elements.

Parameters

&$items: An array of items to be displayed.

Return value

No return value. Modify $items by reference.

See also

hook_styleguide()

1 invocation of hook_styleguide_alter()
styleguide_page in ./styleguide.module
The styleguide page.

File

./styleguide.api.php, line 68

Code

function hook_styleguide_alter(&$items) {

  // Add a class to the text test.
  $items['text']['content'] = '<div class="mytestclass">' . $items['text']['content'] . '</div>';

  // Remove the headings tests.
  unset($items['headings']);
}