1 template.php | basis_preprocess_node(&$variables) |
Prepares variables for node templates.
See also
File
- core/
themes/ basis/ template.php, line 87 - Basis preprocess functions and theme function overrides.
Code
function basis_preprocess_node(&$variables) {
if ($variables['status'] == NODE_NOT_PUBLISHED) {
$name = node_type_get_name($variables['type']);
$variables['title_suffix']['unpublished_indicator'] = array(
'#type' => 'markup',
'#markup' => '<div class="unpublished-indicator">' . t('This @type is unpublished.', array('@type' => $name)) . '</div>',
);
}
}