You are here

function _ad_ui_install_blocks in Advertisement 7.3

Display blocks.

1 call to _ad_ui_install_blocks()
drush_ad_ui_install in modules/ad_ui/ad_ui.drush.inc
Callback to install example ads and terms.

File

modules/ad_ui/ad_ui.drush.inc, line 155

Code

function _ad_ui_install_blocks() {
  $theme = variable_get('theme_default', 'bartik');
  db_query("UPDATE {block} SET region = 'sidebar_first', status = 1 WHERE theme = :theme AND delta = 'rectangle_ad_block'", array(
    ':theme' => $theme,
  ));
  db_query("UPDATE {block} SET region = 'sidebar_second', status = 1  WHERE theme = :theme AND delta = 'skyscraper_ad_block'", array(
    ':theme' => $theme,
  ));
  db_query("UPDATE {block} SET region = 'header', status = 1  WHERE theme = :theme AND delta = 'leaderboard_ad_block'", array(
    ':theme' => $theme,
  ));
}