Hook Liste
Erscheinungsbild
| Hook | Module | Beschreibung/Link |
|---|---|---|
| hook_styleguide_alter() | styleguide | styleguide |
| Beispiel | Beispiel | Beispiel |
| Beispiel | Beispiel | Beispiel |
Hooks
hook_styleguide_alter()
/**
* Display a standard link and a word with emphasis. Theme an image.
*/
function custom_styleguide() {
$items = array(
'a' => array(
'title' => 'Link',
'content' => l(styleguide_word(3), 'node'),
),
'em' => array(
'title' => 'Emphasis',
'tag' => 'em',
'content' => styleguide_word(3),
)
'image' => array(
'title' => 'Image',
'theme' => 'image',
'variables' => array('path' => 'path/to/image.jpg', 'alt' => t('My image'), 'title' => t('My image')),
),
);
return $items;
}