You are here

function css_emimage_form_alter in CSS Embedded Images 6

Same name and namespace in other branches
  1. 6.2 css_emimage.module \css_emimage_form_alter()

Implementation of hook_form_alter().

File

./css_emimage.module, line 17

Code

function css_emimage_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'system_performance_settings') {
    $form['bandwidth_optimizations']['preprocess_css']['#description'] .= t(' Once the CSS files have been aggregated, image URLs will be replaced with embedded images.');
    $form['bandwidth_optimizations']['css_emimage_ielimit'] = array(
      '#type' => 'checkbox',
      '#title' => t('Only embed images less than 32KB'),
      '#description' => t('Internet Explorer does not support embedded images larger than 32KB. If you are not concerned about IE support you can ignore this limitation; otherwise, it is best to leave this checked.'),
      '#default_value' => variable_get('css_emimage_ielimit', 1),
      '#weight' => $form['bandwidth_optimizations']['preprocess_css']['#weight'] + 0.1,
    );
  }
}