You are here

function better_revisions_log_combine in Better Revisions 7

Same name and namespace in other branches
  1. 8 better_revisions.module \better_revisions_log_combine()
1 string reference to 'better_revisions_log_combine'
better_revisions_form_alter in ./better_revisions.module

File

./better_revisions.module, line 85
Main enhanced revisions module file.

Code

function better_revisions_log_combine($form, &$form_state) {
  if (!empty($form_state['values']['log_extra'])) {
    if (filter_format_load('filtered_html')) {
      $extra = check_markup($form_state['values']['log_extra'], 'filtered_html');
    }
    else {
      $extra = check_plain($form_state['values']['log_extra']);
    }
    $form_state['values']['log'] .= ': ' . $extra;
    unset($form_state['values']['log_extra']);
  }
}