You are here

function hook_skinr_group_PLUGIN_info in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr.api.php \hook_skinr_group_PLUGIN_info()

Define one or more skin groups in an atomic Skinr plugin file.

This hook works identically to hook_skinr_group_info(), but allows to place one or more related skin group definitions into a separate plugin file.

For example, considering a module or theme with the name "extension" that contains an include file: @code extension/skins/example/example.inc @encode The "hook" prefix is substituted with the name of the module or theme implementing it ("extension"), and PLUGIN is substituted with the name of the include file ("example"), e.g., THEME_skinr_group_PLUGIN_info() or MODULE_skinr_group_PLUGIN_info(). For above example, the function name would be: extension_skinr_group_example_info().

Related topics

File

./skinr.api.php, line 423
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_group_PLUGIN_info() {
  $groups['extension_example_menus'] = array(
    'title' => t('Menus'),
    'description' => t('Menu and navigation styles.'),
  );
  return $groups;
}