function hook_element_info_alter

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 system.api.php hook_element_info_alter(&$type)
cle7 system.api.php hook_element_info_alter(&$type)
elmsmedia7 system.api.php hook_element_info_alter(&$type)
icor7 system.api.php hook_element_info_alter(&$type)
meedjum_blog7 system.api.php hook_element_info_alter(&$type)
mooc7 system.api.php hook_element_info_alter(&$type)

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.

Parameters

$type: All element type defaults as collected by hook_element_info().

See also

hook_element_info()

Related topics

11 functions implement hook_element_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

accessibility_wysiwyg_element_info_alter in sites/all/modules/ulmus/accessibility/modules/accessibility_wysiwyg/accessibility_wysiwyg.module
Implements hook_element_info_alter().
advagg_element_info_alter in sites/all/modules/ulmus/advagg/advagg.module
Implements hook_element_info_alter().
alpha_element_info_alter in sites/all/themes/ulmus/omega/alpha/template.php
Implements hook_element_info_alter().
better_formats_element_info_alter in sites/all/modules/ulmus/better_formats/better_formats.module
Implements of hook_element_info_alter().
ckeditor_link_element_info_alter in sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module
Implementation of hook_element_info_alter().

... See full list

1 invocation of hook_element_info_alter()
element_info in includes/common.inc
Retrieves the default properties for the defined element type.

File

modules/system/system.api.php, line 702
Hooks provided by Drupal core and the System module.

Code

function hook_element_info_alter(&$type) {
  // Decrease the default size of textfields.
  if (isset($type['textfield']['#size'])) {
    $type['textfield']['#size'] = 40;
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.