Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. /**
  2. * Implements hook_theme().
  3. */
  4. function my_module_theme($existing, $type, $theme, $path) {
  5. return array(
  6. 'my_module_mail' => array(
  7. 'variables' => array(
  8. 'service_name' => NULL,
  9. 'time' => NULL,
  10. 'therapist' => NULL,
  11. 'booking_link' => NULL,
  12. ),
  13. 'template' => 'templates/my-module-mail',
  14. ),
  15. );
  16. }
  17.  
  18. foreach ($available_openings[$tid['tid']] as $mail_opening) {
  19. $variables = $mail_opening;
  20. $body = theme('my_module_mail', $variables);
  21. }
  22.  
  23. <?php foreach ($openings as $id => $opening): ?>
  24. <div class="<?php print $classes_array[$id]; ?>">
  25. <?php print $opening; ?>
  26. </div>
  27. <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement