You are here

function npop_preprocess_node in Node pop-up 7

Implements hook_preprocess_node().

File

./npop.module, line 248
Create popup nodes with ajax and Drupal core functionality.

Code

function npop_preprocess_node(&$variables) {
  if ($variables['view_mode'] == 'npop_ajax') {

    // Create suggestions for node--npop_ajax.tpl.php template.
    $variables['theme_hook_suggestions'][] = 'node__npop_ajax';

    // Create suggestions for node--NODE-TYPE--npop_ajax.tpl.php template.
    $variables['theme_hook_suggestions'][] = 'node__' . $variables['type'] . '__npop_ajax';
  }
}