Customizing the module output

Last modified: October 1, 2008 - 10:35

Sometimes you might want to customize the way some areas of the module look. For instance, you might want to alter the Birthdays page, or change the listing in the Birthdays blocks. This can be done by overriding the theme functions. How to do so can be found here: http://drupal.org/node/173880.

If you want to display the date of birth or age on another location (e.g. near the user name, in the forums, on nodes), you best use the functions

<?php
$age
= _birthdays_show_age($account);
$date = _birthdays_show_date($date_array, $account, 'medium');
?>

These will listen to the global or user determined visibility of the age and year of date.

More specific information might follow later.

I'd tried the above method in

sadist - December 5, 2009 - 06:39

I'd tried the above method in my own customised user-profile.tpl.php, $age is working, but not $date. any idea why?

 
 

Drupal is a registered trademark of Dries Buytaert.