You are here

function adsense_oldcode_block_save in Google AdSense integration 7

Implements hook_block_save().

File

old/oldcode/adsense_oldcode.module, line 141
Displays Google AdSense ads on Drupal pages.

Code

function adsense_oldcode_block_save($delta, $edit) {
  $data = implode(':', array(
    urlencode(check_plain($edit['info'])),
    check_plain($edit['ad_format']),
    check_plain($edit['ad_group']),
    check_plain($edit['ad_channel']),
    check_plain($edit['ad_align']),
  ));
  variable_set('adsense_oldcode_ad_block_' . $delta, $data);
}