Skip navigation
Help

hook_locale

6 core.php hook_locale($op = 'groups')
7 locale.api.php hook_locale($op = 'groups')

Allows modules to define their own text groups that can be translated.

Parameters

$op: Type of operation. Currently, only supports 'groups'.

Related topics

4 functions implement hook_locale()

9 invocations of hook_locale()

File

drupal/modules/locale/locale.api.php, line 19
Hooks provided by the Locale module.

Code

function hook_locale($op = 'groups') {
  switch ($op) {
    case 'groups':
      return array('custom' => t('Custom'));
  }
}