You are here

function splashify_display_ajax in Splashify 7

Outputs a node via AJAX. This will display the full page view mode for a noe.

1 string reference to 'splashify_display_ajax'
splashify_menu in ./splashify.module
Implements hook_menu().

File

./splashify.display.inc, line 460
Handles displaying the splash page.

Code

function splashify_display_ajax() {
  $nid = arg(1);
  if (!($node = node_load($nid))) {
    echo 'An error occurred loading this node.';
    drupal_exit();
  }
  echo drupal_render(node_view($node, 'full'));
  drupal_exit();
}