Commit 9baa8c0a authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Added a function for configuring all calendars.

parent 09a8f5e2
......@@ -805,6 +805,10 @@ function password_validate(Pieform $form, $values, $username, $institution) {
}
//
// Pieform related functions
//
/**
* Configures a default form
*/
......@@ -827,6 +831,13 @@ function pieform_configure() {
);
}
function pieform_configure_calendar($element) {
$element['jsroot'] = '/js/jscalendar/';
$element['themefile'] = get_config('themeurl') . 'style/calendar.css';
$element['imagefile'] = get_config('themeurl') . 'calendar.gif';
return $element;
}
/**
* Given a view id, and a user id (defaults to currently logged in user if not
* specified) will return wether this user is allowed to look at this view.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment