<?php
/**
 * @file
 * Hide the Revision log field.
 */

function _option_cfs_revisionlog(&$form, &$form_state, $settings, $node) {
  if ($settings['cfs_revisionlog'] == 1) {
    $form['revision_information']['#access'] = user_access('view revisions');
  }
  elseif ($settings['cfs_revisionlog'] == 2) {
    $form['revision_information']['#access'] = FALSE;
  }

  return $form;
}
