You are here

function hook_icon_render_hooks in Icon API 8

Same name and namespace in other branches
  1. 7 icon.api.php \hook_icon_render_hooks()

Define render hook information.

Return value

array An associative array containing:

  • render_name: A unique machine name and an associative array containing:

    • file: Optional, file where the preprocessing and theming hooks are defined. If omitted, this will fall back to the .module or template.php file respectively.
    • path: Optional, path where the file above is located. If omitted, this will fall back to the module or theme path that implemented this hook. This may be obvious to some, but if the path is not the default module or theme root path, the file must also be explicitly set.

See also

icon_icon_render_hooks()

1 function implements hook_icon_render_hooks()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

icon_icon_render_hooks in includes/render.inc
Define render hook information.

File

./icon.api.php, line 29
icon.api.php Hooks and form elements provided by the Icon API module.

Code

function hook_icon_render_hooks() {
  $hooks['my_render'] = array();
  $hooks['my_render_alt'] = array(
    'file' => 'icon.render.inc',
    'path' => drupal_get_path('module', 'my_module') . '/includes',
  );
  return $hooks;
}