You are here

function formdazzle_preprocess_form_element in Formdazzle! 8

Same name and namespace in other branches
  1. 2.x formdazzle.module \formdazzle_preprocess_form_element()

Implements hook_preprocess_HOOK().

File

./formdazzle.module, line 155
The module that provides a set of utilities that make form theming easier.

Code

function formdazzle_preprocess_form_element(&$variables) {

  // The ['label']['#theme'] can't be altered until this function because it is
  // unconditionally created in template_preprocess_form_element().
  if (isset($variables['element']['#formdazzle'])) {
    $variables['label']['#theme'] .= $variables['element']['#formdazzle']['suggestion_suffix'];
  }
}