Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function gcc_event_node_view($node, $build_mode = 'full') {
  2. if ($node->type !== 'eventlist') {
  3. return;
  4. }
  5. if (have replacement html) {
  6. $node->content['body'][0]['#markup'] = "new stuff";
  7. } else if (use pdf) {
  8. header('Content-type: application/pdf');
  9. header('Content-length: ' . filesize($fullPath));
  10. header('Content-Disposition: filename=' . $this->ShortName() . $file);
  11. readfile($fullPath);
  12. // need something here to make the node not render further at all
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement