function adaptivetheme_form_node_form_alter

cis7 alter.inc adaptivetheme_form_node_form_alter(&$form, &$form_state, $form_id)
cle7 alter.inc adaptivetheme_form_node_form_alter(&$form, &$form_state, $form_id)
elmsmedia7 alter.inc adaptivetheme_form_node_form_alter(&$form, &$form_state, $form_id)
icor7 alter.inc adaptivetheme_form_node_form_alter(&$form, &$form_state, $form_id)
meedjum_blog7 alter.inc adaptivetheme_form_node_form_alter(&$form, &$form_state, $form_id)
mooc7 alter.inc adaptivetheme_form_node_form_alter(&$form, &$form_state, $form_id)

hook_form_BASE_FORM_ID_alter() Modify field classes on node forms.

File

sites/all/themes/ulmus/adaptivetheme/at_core/inc/alter.inc, line 589
General alters.

Code

function adaptivetheme_form_node_form_alter(&$form, &$form_state, $form_id) {
  // Remove if #1245218 is backported to D7 core.
  foreach (array_keys($form) as $item) {
    if (strpos($item, 'field_') === 0) {
      if (!empty($form[$item]['#attributes']['class'])) {
        foreach ($form[$item]['#attributes']['class'] as &$class) {
          if (strpos($class, 'field-type-') === 0 || strpos($class, 'field-name-') === 0) {
            // Make the class different from that used in theme_field().
            $class = $class . '-form';
          }
        }
      }
    }
  }
}
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.