You are here

function adsense_managed_block_save in Google AdSense integration 7

Implements hook_block_save().

File

managed/adsense_managed.module, line 238
Displays Google AdSense ads on Drupal pages.

Code

function adsense_managed_block_save($delta = '', $edit = array()) {
  $data = implode(':', array(
    urlencode(check_plain($edit['info'])),
    check_plain($edit['ad_format']),
    check_plain($edit['ad_slot']),
    check_plain($edit['ad_align']),
    check_plain(implode(',', $edit['ad_shape'])),
    check_plain($edit['ad_width']),
    check_plain($edit['ad_height']),
    check_plain($edit['ad_layout_key']),
  ));
  variable_set('adsense_managed_ad_block_' . $delta, $data);
}