Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created February 1, 2012 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dergachev/1719671 to your computer and use it in GitHub Desktop.
Save dergachev/1719671 to your computer and use it in GitHub Desktop.
<?php
function article_menu_callback($node) {
return array(
'#theme' => 'node_article', // #theme is a special property to specify node-article.tpl.php
'#article_title' => $node->title, // variable accessible via $article_title
'#article_body' => $node->body, // variable accessible via $article_body
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment