Guest User

Untitled

a guest
Apr 7th, 2011
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. /**
  2. * Implementation of HOOK_theme().
  3. */
  4. function myzen_theme($existing, $type, $theme, $path) {
  5. watchdog("zen hook",dvr($existing, $return=TRUE, NULL), NULL, WATCHDOG_NOTICE, NULL);
  6. $hooks = zen_theme($existing, $type, $theme, $path);
  7.  
  8. $hooks['more_link'] = array( 'arguments' => array('url' => NULL, 'title' => NULL), );
  9. watchdog("zen hook",dvr($hooks, $return=TRUE, NULL), NULL, WATCHDOG_NOTICE, NULL);
  10.  
  11. // @TODO: Needs detailed comments. Patches welcome!
  12. return $hooks;
  13. }
  14.  
  15. function myzen_more_link($url, $title) {
  16. watchdog("template.php","myzen_more_link");
  17. return '<div class="more-link">' . t('<a href="@link" title="@title">(XXX more ... )</a>', array('@link' => check_url($url), '@title' => $title)) . '</div>';
  18. }
Advertisement
Add Comment
Please, Sign In to add comment