From 4ac2c3ef0e13d187c5443dc9a5b030c7da495e8a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Jun 2005 09:10:19 +0000 Subject: [PATCH] new param 'max_quantity' for the calendar_resources hook and some docu --- resources/inc/class.resources_hooks.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/inc/class.resources_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php index 2cc048c5ae..7cee46c8b1 100644 --- a/resources/inc/class.resources_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -95,10 +95,11 @@ class resources_hooks function calendar_resources($args) { return array( - 'select_template' => 'resources.resource_selectbox', - 'info' => 'resources.bo_resources.get_calendar_info', - 'new_status' => 'resources.bo_resources.get_calendar_new_status', - 'type' => 'r', + 'widget' => 'resources_select', // widget to use for the selection of resources + 'info' => 'resources.bo_resources.get_calendar_info', // info method, returns array with id, type & name for a given id + 'max_quantity' => 'useable', // if set, key for max. quantity in array returned by info method + 'new_status' => 'resources.bo_resources.get_calendar_new_status', // method returning the status for new items, else 'U' is used + 'type' => 'r', // one char type-identifiy for this resources ); } }