function hook_skinr_elements in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr.api.php \hook_skinr_elements()
Return an array of element ids.
An element is a block, node, region, etc.
array(
'block' => array(
'system__navigation',
),
);
Parameters
$variables: The variables array from skinr_preprocess().
$hook: The name of the theme hook.
$op: The operation being performed:
- 'preprocess'
- 'contextual_links'
Return value
An array of element arrays, keyed by element type. Example:
See also
Related topics
6 functions implement hook_skinr_elements()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- block_skinr_elements in modules/
block.skinr.inc - Implements hook_skinr_elements().
- comment_skinr_elements in modules/
comment.skinr.inc - Implements hook_skinr_elements().
- node_skinr_elements in modules/
node.skinr.inc - Implements hook_skinr_elements().
- skinr_panels_skinr_elements in skinr_panels/
skinr_panels.skinr.inc - Implements hook_skinr_elements().
- system_skinr_elements in modules/
system.skinr.inc - Implements hook_skinr_elements().
File
- ./
skinr.api.php, line 100 - 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_elements(&$variables, $hook, $op) {
$elements = array();
if ($hook == 'block') {
$elements['block'] = array(
$variables['block']->module . '__' . $variables['block']->delta,
);
}
return $elements;
}