You are here

function coder_review_admin_settings in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/coder_review.module \coder_review_admin_settings()

Page callback: Configures administrative settings via system_settings_form().

See also

coder_review_menu()

coder_review_settings_form_submit()

1 string reference to 'coder_review_admin_settings'
coder_review_menu in coder_review/coder_review.module
Implements hook_menu().

File

coder_review/coder_review.admin.inc, line 14
Administrative forms and functions for the Coder module.

Code

function coder_review_admin_settings($form, &$form_state) {

  // Bootstrap enough to run.
  require_once realpath(dirname(__FILE__)) . '/coder_review.common.inc';
  $settings = _coder_review_get_default_settings();
  $form = _coder_review_settings_form($settings, $system, $files);
  $form['help'] = array(
    '#type' => 'markup',
    '#markup' => t('After setting these defaults, use <a href="@url">coder review</a> to perform code reviews.', array(
      '@url' => url('admin/config/development/coder/review'),
    )),
    '#weight' => -1,
  );
  $form['#submit'][] = 'coder_review_settings_form_submit';
  return system_settings_form($form);
}