You are here

function _adsense_search_get_block_config in Google AdSense integration 6

Same name and namespace in other branches
  1. 5.3 old/search/adsense_search.module \_adsense_search_get_block_config()
  2. 7 old/search/adsense_search.module \_adsense_search_get_block_config()

Configuration of the provided block.

Parameters

int $delta: Block number.

Return value

array array with the block configuration or FALSE if no such block was found

1 call to _adsense_search_get_block_config()
adsense_search_block in old/search/adsense_search.module
Implementation of hook_block().

File

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

Code

function _adsense_search_get_block_config($delta = 0) {
  if ($data = variable_get('adsense_search_ad_block_' . $delta, ADSENSE_SEARCH_AD_BLOCK_DEFAULT)) {
    $ad = explode(':', $data);
    $ad[0] = urldecode($ad[0]);
    return $ad;
  }
  return FALSE;
}