Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created February 1, 2012 22:33
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/1719894 to your computer and use it in GitHub Desktop.
Save dergachev/1719894 to your computer and use it in GitHub Desktop.
<?php
return array(
'#theme' => 'node_article',
'#article_title' => $node->title,
'#article_body' => $node->body,
'#attached' => array( //special property to attach a CSS or JS file to a template
'css' => array(
'/sites/all/modules/ew' . '/ew.css', //use drupal_get_path() instead
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment