diff options
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r-- | modules/system/system.api.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 4f2ec074b..2c5bcbd27 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -215,10 +215,15 @@ function hook_db_rewrite_sql($query, $primary_table, $primary_field, $args) { * - "#pre_render": array of callback functions taking $element and $form_state. * - "#post_render": array of callback functions taking $element and $form_state. * - "#submit": array of callback functions taking $form and $form_state. + * + * @see hook_element_info_alter() + * @see system_element_info() */ -function hook_elements() { - $type['filter_format'] = array('#input' => TRUE); - return $type; +function hook_element_info() { + $types['filter_format'] = array( + '#input' => TRUE, + ); + return $types; } /** @@ -228,9 +233,9 @@ function hook_elements() { * defined by a module. * * @param &$type - * All element type defaults as collected by hook_elements(). + * All element type defaults as collected by hook_element_info(). * - * @see hook_elements() + * @see hook_element_info() */ function hook_element_info_alter(&$type) { // Decrease the default size of textfields. |