function htmlpurifier_admin_settings in HTML Purifier 7.2
Same name and namespace in other branches
- 7 htmlpurifier.admin.inc \htmlpurifier_admin_settings()
Generate a form for configuring overall HTML Purifier settings.
See also
htmlpurifier_admin_settings_submit()
1 string reference to 'htmlpurifier_admin_settings'
File
- ./
htmlpurifier.admin.inc, line 14 - Administrative page callbacks for the HTML Purifier module.
Code
function htmlpurifier_admin_settings($form, &$form_state) {
$form['htmlpurifier_introduction'] = array(
'#markup' => t('<p>This page contains global settings for all HTML Purifier enabled filters. If you are looking for specific filter configuration options, check <a href="@format">the format configurations page</a> and select the specific format you would like to configure.</p>', array(
'@format' => url('admin/config/content/formats'),
)),
);
$form['htmlpurifier_clear_cache'] = array(
'#type' => 'submit',
'#value' => t('Clear cache (Warning: Can result in performance degradation)'),
'#submit' => array(
'_htmlpurifier_clear_cache',
),
);
$form = system_settings_form($form);
$form['#submit'][] = 'htmlpurifier_admin_settings_submit';
return $form;
}