function views_plugin_display_block::save_block_cache in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 plugins/views_plugin_display_block.inc \views_plugin_display_block::save_block_cache()
- 7.3 plugins/views_plugin_display_block.inc \views_plugin_display_block::save_block_cache()
Save the block cache setting in the blocks table if this block allready exists in the blocks table. Dirty fix untill http://drupal.org/node/235673 gets in.
1 call to views_plugin_display_block::save_block_cache()
- views_plugin_display_block::options_submit in plugins/
views_plugin_display_block.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
File
- plugins/
views_plugin_display_block.inc, line 187 - Contains the block display plugin.
Class
- views_plugin_display_block
- The plugin that handles a block.
Code
function save_block_cache($delta, $cache_setting) {
if ($bid = db_fetch_object(db_query("SELECT bid, cache FROM {blocks} WHERE module = 'views' AND delta = '%s'", $delta))) {
db_query("UPDATE {blocks} set cache = %d WHERE module = 'views' AND delta = '%s'", $cache_setting, $delta);
}
}