You are here

user_revision.admin.inc in User Revision 7.2

Same filename and directory in other branches
  1. 7 user_revision.admin.inc

Admin settings for user revision.

File

user_revision.admin.inc
View source
<?php

/**
 * @file
 * Admin settings for user revision.
 */

/**
 * Form builder; Configure user revision settings for this site.
 */
function user_revision_admin_settings() {
  $form['user_revision_by_default'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use revisions by default'),
    '#default_value' => variable_get('user_revision_by_default', 1),
    '#description' => t('If checked every save will create a new revision (can be overridden by users with %choose permission).', array(
      '%choose' => user_revision_permission()['choose user revisions']['title'],
    )),
  );
  $form['user_revision_admin_theme'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use administration theme'),
    '#default_value' => variable_get('user_revision_admin_theme', 0),
    '#description' => t('If checked revision pages will be shown using the administration theme (for users with appropriate permission).'),
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
user_revision_admin_settings Form builder; Configure user revision settings for this site.