Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. function theme_myModuleBox($title, $content, $region = 'main')
  2. {
  3.   $output = '<h1 class="title">' . $title . '</h1><div>' . $content . '</div>';
  4.   return $output;
  5. }
  6.  
  7. theme('theme_myModuleBox', $title, $content, $region = 'main');
  8.  
  9. /**
  10.  * Implements hook_theme().
  11.  */
  12. function myModule_theme() {
  13.   return array(
  14.     'myModuleBox' => array(
  15.       'arguments' => array(
  16.         'title' => '',
  17.         'content' => '',
  18.         'region' => 'main',
  19.       ),
  20.     )
  21.   );
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement