You are here

function hook_skinr_group_info in Skinr 7.2

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

Defines group(s) that will contain skins.

Groups are form element containers used to organize skins categorically. If you do not define a group, your skins will appear in Skinr's default group, which is labeled "General." Skinr implements 4 default groups, which may be used in any skin implementation. For more information, see skins/default.inc.

Each group name must be unique. It is recommended to prefix the name of each group with the name of the theme or module name implementing it, followed by the name of the group. Note that you cannot define 2 groups with the same name, even if they are in different plugins.

Group properties:

  • title (required): Brief title of the tab.
  • description (optional): Description of the group for administration page.
  • weight (discouraged): Weight of the tab group; 0 by default.

The "hook" prefix is substituted with the name of the module or theme that implements it.

See also

skinr_default_skinr_group_info()

Related topics

2 functions implement hook_skinr_group_info()

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

skinr_skinr_group_info in ./skinr.skinr.inc
Implements hook_skinr_group_info().
skinr_test_skinr_group_info in tests/skinr_test/skinr_test.skinr.inc
Implements hook_skinr_group_info().

File

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