You are here

function simple_adsense_preprocess_block in Simple AdSense 7

Implements template_preprocess_block().

Add a custom class to our blocks.

File

./simple_adsense.module, line 105
Module file for Simple AdSense.

Code

function simple_adsense_preprocess_block(&$variables) {
  $delta = $variables['block']->delta;
  if (preg_match('/^simple_adsense_slot\\d+$/', $delta)) {
    $variables["classes_array"] = array_merge($variables["classes_array"], array(
      "simple-adsense",
    ));
  }
}