Commit 47fd59e2 authored by soxofaan's avatar soxofaan

Issue #780206: add a warning on performance settings page about disabled page...

Issue #780206: add a warning on performance settings page about disabled page caching on pages with a CAPTCHA element
parent 8055780f
......@@ -413,6 +413,20 @@ function captcha_form_alter(&$form, &$form_state, $form_id) {
}
}
// Add a warning about caching on the Perfomance settings page.
if ($form_id == 'system_performance_settings') {
$icon = theme('image', array('path' => 'misc/watchdog-warning.png', 'width' => 18, 'height' => 18, 'alt' => t('warning'), 'title' => t('warning')));
$form['caching']['captcha'] = array(
'#type' => 'item',
'#title' => t('CAPTCHA'),
'#markup' => t('!icon The CAPTCHA module will disable the caching of pages that contain a CAPTCHA element.', array(
'!icon' => '<span class="icon">' . $icon . '</span>')
),
'#attributes' => array('class' => array('warning')),
);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment