hook_locale
Definition
hook_locale($op = 'groups')
developer/hooks/core.php, line 1998
Description
Allows modules to define their own text groups that can be translated.
Parameters
$op Type of operation. Currently, only supports 'groups'.
Related topics
| Name | Description |
|---|---|
| Hooks | Allow modules to interact with the Drupal core. |
Code
<?php
function hook_locale($op = 'groups') {
switch ($op) {
case 'groups':
return array('custom' => t('Custom'));
}
}
?> 