function gc_form_alter in GatherContent 8
Implements hook_form_alter().
We are adding some classes here.
File
- ./
_old.gc.module, line 792
Code
function gc_form_alter(&$form, \Drupal\Core\Form\FormStateInterface &$form_state, $form_id) {
switch ($form_id) {
case 'gc_import_form_select':
$form['#attributes']['class'][] = 'form-select-import';
break;
case 'gc_mapping_edit_form':
$form['#attributes']['class'][] = 'form-gc-mapping';
break;
}
}