You are here

function headerimage_preprocess_block in Header image 7

Implementation of hook_preprocess_block().

File

./headerimage.module, line 814
headerimage.module Conditionally display an node in a block.

Code

function headerimage_preprocess_block(&$vars) {
  if (module_exists('contextual')) {
    if ($vars['block']->module == 'headerimage') {
      $vars['title_suffix']['contextual_links']['#contextual_links']['node'] = array(
        'node',
        array(
          $vars['block']->nid,
        ),
      );
    }
  }
}