Alter the element type information returned from modules.
A module may implement this hook in order to alter the element type defaults defined by a module.
$type: All element type defaults as collected by hook_element_info().
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_element_info_alter(&$type) {
// Decrease the default size of textfields.
if (isset($type['textfield']['#size'])) {
$type['textfield']['#size'] = 40;
}
}