function hook_locale

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

File

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'));
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!locale!locale.api.php/function/hook_locale/7.x