hook_locale

hooks/core.php, line 2288

Versions
hooks
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'.

Código

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