You are here

function _cdn_settings_form_prepare in CDN 7.2

Same name and namespace in other branches
  1. 6.2 cdn.admin.inc \_cdn_settings_form_prepare()
3 calls to _cdn_settings_form_prepare()
cdn_admin_details_form in ./cdn.admin.inc
Form definition; details.
cdn_admin_general_settings_form in ./cdn.admin.inc
Form definition; general settings.
cdn_admin_other_settings_form in ./cdn.admin.inc
Form definition; other settings.

File

./cdn.admin.inc, line 580
Settings administration UI.

Code

function _cdn_settings_form_prepare(&$form, $form_state) {

  // Do some checks, but prevent them from showing up twice.
  if (empty($form_state['input'])) {
    _cdn_admin_check_requirements();

    // Advanced help.
    _cdn_check_advanced_help();
    $form['#attributes']['class'][] = 'cdn-settings';
    $form['#attached']['css'][] = drupal_get_path('module', 'cdn') . '/cdn.admin.css';
  }

  // Form.
  $form['#submit'] = array(
    'cdn_admin_settings_submit_show_cache_warning',
  );
}