function _cacheflush_form_descriptions in CacheFlush 7
Same name and namespace in other branches
- 7.2 cacheflush.preset.inc \_cacheflush_form_descriptions()
Update form tabs with Notes.
1 call to _cacheflush_form_descriptions()
- cacheflush_preset_form in ./
cacheflush.preset.inc - Callback function after drupal_get_form().
File
- ./
cacheflush.preset.inc, line 251 - Cacheflush module add/edit form for presets.
Code
function _cacheflush_form_descriptions(&$form) {
$form['cacheflush_form_mani_note'] = array(
'#type' => 'item',
'#title' => t('Cache sources'),
'#weight' => 40,
'#description' => t("Select below the different cache sources you wish to clear when your preset is executed. Don't be afraid to select them, all these are flushed when you normally clear all the caches. Select only those you need for better performance."),
);
$form['vertical_tabs_core']['note'] = array(
'#type' => 'item',
'#title' => t('Note'),
'#description' => t("Select any of the cache database tables below, to be truncated when this preset is executed."),
'#weight' => -10,
);
$form['vertical_tabs_functions']['note'] = array(
'#type' => 'item',
'#title' => t('Note'),
'#description' => t("Select any of the below functions to be run when this preset is executed."),
'#weight' => -10,
);
$form['vertical_tabs_custom']['note'] = array(
'#type' => 'item',
'#title' => t('Note'),
'#description' => t("Select any of the tables defined by contributed modules to be flushed when this preset is executed."),
'#weight' => -10,
);
$form['vertical_tabs_often']['note'] = array(
'#type' => 'item',
'#title' => t('Note'),
'#description' => t('Some contrib modules have unique ways to store their cache, or to flush them.<br />These require custom configuration, so if you can`t find some of your contrib modules here, please submit us an issue on <a href="@url">http://drupal.org/project/cacheflush/issues/</a><br />
Select any from the list below to clear when this preset is executed.', array(
'@url' => url('http://drupal.org/project/cacheflush/issues/'),
)),
'#weight' => -10,
);
}