diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-23 21:20:16 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-07-23 21:20:16 +0000 |
commit | dbb5457cfe2fc016b1ab2e3ee0c8585478bb7360 (patch) | |
tree | a934f96bee172b3b58af3bf4c8fdda5335ec8db8 /includes/common.inc | |
parent | 2a6bd6033de46b447e9c58144668790d45a07896 (diff) | |
download | brdo-dbb5457cfe2fc016b1ab2e3ee0c8585478bb7360.tar.gz brdo-dbb5457cfe2fc016b1ab2e3ee0c8585478bb7360.tar.bz2 |
#527804 by sun: Add an alter hook for element_info() to change default values of form elements.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc index 2de18d1fe..2a84bffd1 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -3987,6 +3987,8 @@ function element_info($type) { $cache[$element_type]['#type'] = $element_type; } } + // Allow modules to alter the element type defaults. + drupal_alter('element_info', $cache); } return $cache[$type]; |