diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-10 06:31:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-10 06:31:39 +0000 |
commit | d481f1cd364de615d274c2ccde68e37126f1959e (patch) | |
tree | bb4c488f30b310441fb81ef76f0edbad382cd3f0 /modules/taxonomy/taxonomy.module | |
parent | 46c4a33b21988a5420ffab0964c6a017abbb96b2 (diff) | |
download | brdo-d481f1cd364de615d274c2ccde68e37126f1959e.tar.gz brdo-d481f1cd364de615d274c2ccde68e37126f1959e.tar.bz2 |
- Patch #572932 by sun: rename hook_elements() to hook_elements_info() for consistency. Yay to API clean-ups during 'slush'.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 039b7bca0..7bf15935a 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -2144,23 +2144,16 @@ function taxonomy_autocomplete_validate($element, &$form_state) { } /** - * Implement FAPI hook_elements(). - * - * Any FAPI callbacks needed for individual widgets can be declared here, - * and the element will be passed to those callbacks for processing. - * - * Drupal will automatically theme the element using a theme with - * the same name as the hook_elements key. - */ -function taxonomy_elements() { - return array( - 'taxonomy_autocomplete' => array( - '#input' => TRUE, - '#columns' => array('value'), - '#delta' => 0, - '#process' => array('taxonomy_autocomplete_elements_process'), - ), + * Implement hook_element_info(). + */ +function taxonomy_element_info() { + $types['taxonomy_autocomplete'] = array( + '#input' => TRUE, + '#columns' => array('value'), + '#delta' => 0, + '#process' => array('taxonomy_autocomplete_elements_process'), ); + return $types; } /** |