You are here

function brainstorm_theme_block_view_alter in Brainstorm profile 7

Implements hook_block_view_alter().

File

themes/brainstorm_theme/template.php, line 105
Process theme data.

Code

function brainstorm_theme_block_view_alter(&$data, $block) {
  if ($block->module == 'superfish' && $block->delta == 2) {
    $data['subject'] = 'Links';
  }
  if ($block->css_class == 'maps') {
    drupal_add_js('https://maps.googleapis.com/maps/api/js?sensor=false');
    drupal_add_js(path_to_theme() . '/scripts/maps.js');
  }
}