You are here

styleguide.api.php in Style Guide 8

Same filename and directory in other branches
  1. 6 styleguide.api.php
  2. 7 styleguide.api.php
  3. 2.x styleguide.api.php

Hooks for the Styleguide module.

File

styleguide.api.php
View source
<?php

/**
 * @file
 * Hooks for the Styleguide module.
 */

/**
 * Alter styleguide elements.
 *
 * @param array &$items
 *   An array of items to be displayed.
 *
 * @see hook_styleguide()
 */
function hook_styleguide_alter(array &$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']);
}

Functions

Namesort descending Description
hook_styleguide_alter Alter styleguide elements.