Skip to content
Snippets Groups Projects
Commit 728208f0 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-4729: coding standards

parent 68ccfee9
No related branches found
No related tags found
1 merge request!239ISTWCMS 4729 ebremner search form
...@@ -23,13 +23,13 @@ use Drupal\webform\WebformInterface; ...@@ -23,13 +23,13 @@ use Drupal\webform\WebformInterface;
use Drupal\webform\WebformSubmissionStorageInterface; use Drupal\webform\WebformSubmissionStorageInterface;
/** /**
* Implementation of hook_preprocess_form_element(). * Implements hook_preprocess_form_element().
* *
* Allows for use of label_class in form elements and will add * Allows for use of label_class in form elements and will add
* any class in label_classes to the label. * any class in label_classes to the label.
*/ */
function uw_cfg_common_preprocess_form_element(&$variables) { function uw_cfg_common_preprocess_form_element(&$variables) {
if(isset($variables['element']['#label_classes'])) { if (isset($variables['element']['#label_classes'])) {
$variables['label']['#attributes']['class'] = $variables['element']['#label_classes']; $variables['label']['#attributes']['class'] = $variables['element']['#label_classes'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment