You are here

function hook_skinr_theme_hooks_alter in Skinr 7.2

Same name and namespace in other branches
  1. 8.2 skinr.api.php \hook_skinr_theme_hooks_alter()

Perform alterations to theme hooks before widgets are rendered.

Parameters

$theme_hooks: An array of theme hooks.

$module: The module implementing given element.

$element: An element.

Related topics

1 invocation of hook_skinr_theme_hooks_alter()
skinr_theme_hooks in ./skinr.module
Provide a list of all available theme hooks for a given element.

File

./skinr.api.php, line 70
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_skinr_theme_hooks_alter(&$theme_hooks, $module, $element) {
  if ($module == 'node') {
    array_unshift($theme_hooks, 'node_' . $element . '_custom');
  }
}