hook_locale

  1. drupal
    1. 6 core.php
    2. 7
Versions
6 – 7 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

Code

modules/locale/locale.api.php, line 19

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