Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function gcc_event_node_view($node, $build_mode = 'full') {
- if ($node->type !== 'eventlist') {
- return;
- }
- if (have replacement html) {
- $node->content['body'][0]['#markup'] = "new stuff";
- } else if (use pdf) {
- header('Content-type: application/pdf');
- header('Content-length: ' . filesize($fullPath));
- header('Content-Disposition: filename=' . $this->ShortName() . $file);
- readfile($fullPath);
- // need something here to make the node not render further at all
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement