You are here

function entityblock_preprocess_node in Entityblock 8

Implements template_preprocess_node().

File

./entityblock.module, line 14
Enables users to turn entities in blocks.

Code

function entityblock_preprocess_node(&$variables) {
  if (!empty($variables['elements']['#entityblock'])) {
    $variables['page'] = $variables['elements']['#entityblock'];
  }
}