You are here

function user_revision_admin_settings in User Revision 7.2

Same name and namespace in other branches
  1. 7 user_revision.admin.inc \user_revision_admin_settings()

Form builder; Configure user revision settings for this site.

1 string reference to 'user_revision_admin_settings'
user_revision_menu in ./user_revision.module
Implements hook_menu().

File

./user_revision.admin.inc, line 10
Admin settings for user revision.

Code

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);
}