function _adsense_cse_get_block_config in Google AdSense integration 7
Same name and namespace in other branches
- 5.3 cse/adsense_cse.module \_adsense_cse_get_block_config()
- 6 cse/adsense_cse.module \_adsense_cse_get_block_config()
Configuration of the provided block.
Parameters
int $delta: Block number.
Return value
array|bool array with the block configuration or FALSE if no such block was found
3 calls to _adsense_cse_get_block_config()
- adsense_cse_block_configure in cse/
adsense_cse.module - Implements hook_block_configure().
- adsense_cse_block_info in cse/
adsense_cse.module - Implements hook_block_info().
- adsense_cse_block_view in cse/
adsense_cse.module - Implements hook_block_view().
File
- cse/
adsense_cse.module, line 177 - Displays Google AdSense ads on Drupal pages.
Code
function _adsense_cse_get_block_config($delta = 0) {
if ($data = variable_get('adsense_cse_ad_block_' . $delta, ADSENSE_CSE_AD_BLOCK_DEFAULT)) {
$ad = explode(':', $data);
$ad[0] = urldecode($ad[0]);
return $ad;
}
return FALSE;
}