You are here

function adsense_search_block_save in Google AdSense integration 7

Implements hook_block_save().

File

old/search/adsense_search.module, line 107
Displays Google AdSense ads on Drupal pages.

Code

function adsense_search_block_save($delta, $edit) {
  $data = implode(':', array(
    urlencode(check_plain($edit['info'])),
    check_plain($edit['ad_channel']),
  ));
  variable_set('adsense_search_ad_block_' . $delta, $data);
}