summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module25
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;
}
/**