You are here

node.vars.php in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3

File

themes/vartheme/templates/node/node.vars.php
View source
<?php

/**
 * @file
 * node.vars.php
 */

/**
 * Implements hook_preprocess_node().
 *
 * @see node.tpl.php
 */
function vartheme_preprocess_node(&$variables, $hook) {

  // Add $unpublished variable.
  $variables['unpublished'] = !$variables['status'] ? TRUE : FALSE;
}

Functions

Namesort descending Description
vartheme_preprocess_node Implements hook_preprocess_node().