PDA

View Full Version : How do you call a function in a widget


tomsch
04-23-2011, 06:08 PM
How do you call a function in a widget?

The end result I want is to display ALL the upcoming holidays.

to get the Easter etc holidays the function

fetch_easter_array

should return the information.

Disasterpiece
04-26-2011, 08:43 AM
Widgets do parse php-code so this shouldn't be a problem at all:

$output = fetch_easter_array();
Given that the function returns a string.