clean_markup_blocks.install in Clean Markup 7.3
File
modules/clean_markup_blocks/clean_markup_blocks.install
View source
<?php
module_load_include('module', 'clean_markup', 'clean_markup');
function clean_markup_blocks_install() {
$defaults = array(
'block_wrapper' => 'div',
'additional_block_classes' => '',
'additional_block_attributes' => '',
'enable_inner_div' => FALSE,
'title_wrapper' => 'h2',
'title_hide' => FALSE,
'content_wrapper' => CLEAN_MARKUP_NO_ELEMENT,
'block_html_id_as_class' => TRUE,
);
variable_set('clean_markup_blocks-defaults', $defaults);
}
function clean_markup_blocks_uninstall() {
db_delete('variable')
->condition('name', 'clean_markup_blocks-%', 'LIKE')
->execute();
}
function clean_markup_blocks_update_7200(&$sandbox) {
$defaults = variable_get('clean_markup_blocks-defaults', array());
$defaults['block_wrapper'] = CLEAN_MARKUP_NO_ELEMENT;
variable_set('clean_markup_blocks-defaults', $defaults);
}
function clean_markup_blocks_update_7201(&$sandbox) {
$defaults = variable_get('clean_markup_blocks-defaults', array());
$defaults['block_wrapper'] = 'div';
$defaults['content_wrapper'] = CLEAN_MARKUP_NO_ELEMENT;
variable_set('clean_markup_blocks-defaults', $defaults);
}
function clean_markup_blocks_update_7202(&$sandbox) {
$defaults = variable_get('clean_markup_blocks-defaults', array());
$defaults['block_html_id_as_class'] = TRUE;
variable_set('clean_markup_blocks-defaults', $defaults);
}
function clean_markup_blocks_update_7203(&$sandbox) {
$defaults = variable_get('clean_markup_blocks-defaults', array());
$defaults['additional_block_attributes'] = '';
variable_set('clean_markup_blocks-defaults', $defaults);
}
function clean_markup_blocks_update_7204(&$sandbox) {
drupal_flush_all_caches();
}