hook_locale

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

developer/hooks/core.php, line 2386

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

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.