You are here

function revisioning_ux_form_alter in Revisioning 8

Same name and namespace in other branches
  1. 7 revisioning_ux/revisioning_ux.module \revisioning_ux_form_alter()

Implements hook_form_alter().

File

revisioning_ux/revisioning_ux.module, line 32
Revisioning User Experience Adjustments

Code

function revisioning_ux_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'revisioning_revisions_summary') {
    $vid = arg(3);
    if (is_numeric($vid)) {
      $form['info'][$vid]['#markup'] = '<div class="revisions-active">' . $form['info'][$vid]['#markup'] . '</div>';
      drupal_add_css(drupal_get_path('module', 'revisioning_ux') . '/revisioning_ux.css');
    }
  }
}