diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-25 02:37:33 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-11-25 02:37:33 +0000 |
commit | 66df602593230a2483d6538927fd66310c28c3f8 (patch) | |
tree | 2aade9b5d8e859acbb252915a86ed6da3ff133de /modules/locale | |
parent | b5e0a12fa9735679ca7b0d7f8a951d6840344321 (diff) | |
download | brdo-66df602593230a2483d6538927fd66310c28c3f8.tar.gz brdo-66df602593230a2483d6538927fd66310c28c3f8.tar.bz2 |
#314870 by Rob Loach, drewish, catch, and sun: Add hook API documentation to Drupal core.
Diffstat (limited to 'modules/locale')
-rw-r--r-- | modules/locale/locale.api.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/locale/locale.api.php b/modules/locale/locale.api.php new file mode 100644 index 000000000..60ad3b7f1 --- /dev/null +++ b/modules/locale/locale.api.php @@ -0,0 +1,29 @@ +<?php +// $Id$ + +/** + * @file + * Hooks provided by the Locale module. + */ + +/** + * @addtogroup hooks + * @{ + */ + +/** + * Allows modules to define their own text groups that can be translated. + * + * @param $op + * Type of operation. Currently, only supports 'groups'. + */ +function hook_locale($op = 'groups') { + switch ($op) { + case 'groups': + return array('custom' => t('Custom')); + } +} + +/** + * @} End of "addtogroup hooks". + */ |