You are here

function _adsense_configure_block_message in Google AdSense integration 7

Displays a message for unconfigured blocks.

Parameters

array $url: URL of the block admin page.

Return value

string string with the configure block message.

4 calls to _adsense_configure_block_message()
adsense_cse_block_view in cse/adsense_cse.module
Implements hook_block_view().
adsense_managed_block_view in managed/adsense_managed.module
Implements hook_block_view().
adsense_oldcode_block_view in old/oldcode/adsense_oldcode.module
Implements hook_block_view().
adsense_search_block_view in old/search/adsense_search.module
Implements hook_block_view().

File

./adsense.module, line 682
Displays Google AdSense ads on Drupal pages.

Code

function _adsense_configure_block_message($url) {
  return user_access('administer adsense') ? t('AdSense unconfigured block. <a href=!url>Click to configure.</a>', array(
    '!url' => $url,
  )) : '';
}