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

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

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

Drupal is a registered trademark of Dries Buytaert.