Using hook_theme


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /**
  2.  * Implementation of hook_theme().
  3.  */
  4. function hook_theme() {
  5. return array(
  6. 'theme_name' => array(
  7. 'template' => 'theme-name',
  8. 'arguments' => array('node' => NULL),
  9. ),
  10. );
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.