function flush_page_cache_custom_settings_row in Flush page cache 6
Same name and namespace in other branches
- 7 flush_page_cache.admin.inc \flush_page_cache_custom_settings_row()
Build flush page cache custom settings row form elements.
1 call to flush_page_cache_custom_settings_row()
- flush_page_cache_admin_settings in ./
flush_page_cache.admin.inc - Form builder; Administration page for the 'Flush page cache' module.
File
- ./
flush_page_cache.admin.inc, line 161 - Administration pages for the 'Flush page cache' module.
Code
function flush_page_cache_custom_settings_row($delta, $path = '', $cid = '', $table = '', $wildcard = FALSE) {
static $table_options;
if (empty($table_options)) {
$cache_tables = array_merge(array(
'',
'cache',
'cache_block',
'cache_filter',
'cache_page',
), module_invoke_all('flush_caches'));
asort($cache_tables);
$table_options = array_combine($cache_tables, $cache_tables);
}
$form['path'] = array(
'#type' => 'textfield',
'#default_value' => $path,
'#size' => 20,
);
$form['cid'] = array(
'#type' => 'textfield',
'#default_value' => $cid,
'#size' => 20,
);
$form['table'] = array(
'#type' => 'select',
'#default_value' => $table,
'#options' => $table_options,
);
$form['wildcard'] = array(
'#title' => t('TRUE'),
'#type' => 'checkbox',
'#default_value' => $wildcard,
);
$form['operations'] = array(
'#name' => 'remove_' . $delta,
'#type' => 'button',
'#value' => t('Remove'),
'#ahah' => array(
'path' => 'admin/settings/flush_page_cache/js',
'wrapper' => 'flush-page-cache-custom-settings-table',
'method' => 'replace',
'effect' => 'fade',
),
);
return $form;
}