You are here

function _adsense_format_placeholder in Google AdSense integration 5.2

Same name and namespace in other branches
  1. 5 adsense.module \_adsense_format_placeholder()
1 call to _adsense_format_placeholder()
adsense_display in ./adsense.module

File

./adsense.module, line 1068

Code

function _adsense_format_placeholder($format) {
  $width = _adsense_get_width($format);
  $height = _adsense_get_height($format);
  $placeholder_text = variable_get(ADSENSE_PLACEHOLDER_TEXT, t('Google AdSense'));
  $output = '<div style="';
  $output .= ' width:' . $width . 'px;';
  $output .= ' height:' . $height . 'px;';
  $output .= ' border:solid 1px">' . $placeholder_text . '</div>';
  return $output;
}