You are here

function resp_img_block_view_alter in Responsive images and styles 7

Implements hook_block_view_alter().

File

./resp_img.module, line 434

Code

function resp_img_block_view_alter(&$data, $block) {
  if (variable_get('resp_img_block_enabled', 1) && isset($data['content'])) {
    if (is_string($data['content'])) {
      $data['content'] = _resp_img_replace($data['content']);
    }
    else {
      $data['content']['#post_render'][] = 'resp_img_post_render';
    }
  }
}