Closed (fixed)
Project:
Bookings API
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
9 Apr 2009 at 19:15 UTC
Updated:
22 Jun 2009 at 21:00 UTC
Jump to comment: Most recent, Most recent file
Dear,
I tried to use the bookings module in combination with the public bookings. When creating a resource, it states "creating resource failed". I get this error message in more detail :
user warning: Field 'group' doesn't have a default value query: drupal_write_record /* admin : drupal_write_record */ INSERT INTO bookings_resources (parent, name, location, description, default_availability, disabled) VALUES (0, 'a', 'b', 'b', 2, 0) in D:\server\htdocs\drupal\includes\common.inc on line 3422.
I do not know if this is linked to the standard or this is a known bug.
| Comment | File | Size | Author |
|---|---|---|---|
| #49 | bookingsapi.429262.groupingDefault.patch | 756 bytes | Anonymous (not verified) |
| #32 | bookingsapi.patched.zip | 9.93 KB | Anonymous (not verified) |
| #18 | bookingsapi.429262.patch | 2.48 KB | Anonymous (not verified) |
| #24 | bookingsapi.429262.grouping.patch | 1.97 KB | Anonymous (not verified) |
| #10 | bookingsapi.429262.patch | 2.45 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedI'm having a look into it. Which modules do you have installed (please include versions and drupal-version).
Could you provide a backtrace? (File: bookingsapi.module, line: 703ff.
Change
into
and post the returned value.
Comment #2
Anonymous (not verified) commentedFeel free to re-open if this problem appears again.
Comment #3
stijnthe1st commentedOk, I did a fresh install of Drupal 6.11, Public bookings latest dev version, dateapi latest dev, Bookingapi latest dev version. All necessary modules latest version. However i still get the message "resource failed"
notice: Undefined index: resource_id in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 295.
notice: Undefined index: name in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 301.
notice: Undefined index: location in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 307.
notice: Undefined index: description in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 313.
notice: Undefined index: parent in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 319.
notice: Undefined index: disabled in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 333.
user warning: Field 'group' doesn't have a default value query: INSERT INTO bookings_resources (parent, name, location, description, default_availability, disabled) VALUES (0, 'test', 'test', 'test', 2, 0) in D:\server\htdocs\drupal\includes\common.inc on line 3431.
notice: Undefined index: resource_id in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 295.
notice: Undefined index: name in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 301.
notice: Undefined index: location in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 307.
notice: Undefined index: description in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 313.
notice: Undefined index: parent in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 319.
notice: Undefined index: disabled in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 333.
notice: Undefined index: #size in D:\server\htdocs\drupal\includes\form.inc on line 1414.
notice: Undefined index: #multiple in D:\server\htdocs\drupal\includes\form.inc on line 1416.
Any idea?
If I add the line (print etc print_r) I got a blank page...
Comment #4
Anonymous (not verified) commentedCould you have a look at your database and tell me how your BookingsAPI and PublicBookings Tables look like?
Which datebase system are you using? Which version of PHP are you using?
Comment #5
stijnthe1st commentedbookings_records 0 InnoDB utf8_general_ci 48.0 KiB -
bookings_resources 0 InnoDB utf8_general_ci 32.0 KiB -
bookings_schedules 0 InnoDB utf8_general_ci 48.0 KiB
mysql.5.0.51a
Php version : PHP/5.2.8
Comment #6
Anonymous (not verified) commentedI appologize - I meant which columns exist in those tables.
Which database-driver are you using?
Comment #7
stijnthe1st commentedtable booking_records
record_id int(10) UNSIGNED No None auto_increment
resource_id int(10) UNSIGNED No 0
type tinyint(4) No 0
subtype varchar(20) utf8_general_ci No None
start datetime No None
end datetime No None
name varchar(64) utf8_general_ci No None
description text utf8_general_ci No None
rrule varchar(255) utf8_general_ci No None
rrule_until datetime No None
priority tinyint(4) No 0
created datetime No None
changed datetime No None
status
table booking_resources
resource_id int(10) UNSIGNED No None auto_increment
parent int(10) UNSIGNED No None
group tinyint(3) UNSIGNED No None
name varchar(64) utf8_general_ci No None
location varchar(64) utf8_general_ci No None
description varchar(255) utf8_general_ci No None
default_availability tinyint(4) No 0
disabled
table bookign_shedule
Field Type Collation Attributes Null Default Extra Action
instance_id int(10) UNSIGNED No None auto_increment
resource_id int(10) UNSIGNED No 0
record_id int(10) UNSIGNED No 0
type tinyint(3) UNSIGNED No 1
status tinyint(3) UNSIGNED No 1
start datetime No None
end datetime
Database driver ??? Where can I find it? I use phpmyadmin? Or is a ini or dll file you are looking after? I have access to PHPinfo so I can look there, but I do not know what you want exactly.
Comment #8
Anonymous (not verified) commentedIf you didn't do any setup changes regarding the DB driver, then I dont need any more information. Thanks ;)
I'll have a look at it tomorrow - sorry for the delay.
Comment #9
stijnthe1st commentedok
Comment #10
Anonymous (not verified) commentedThe attached patch will probably not solve your problem, but it might reduce the number of errors (which would give me another hint what the problem could be).
Could you try it?
Comment #11
stijnthe1st commentedhéhé, now I get a blank screen on my drupal homepage...in other words, it's completely f*cked up :) but at least I don't get any error any more :p
Comment #12
Anonymous (not verified) commentedOn the complete drupal page? Or only if you try to add resources? (the latter would be okay ;) )
Comment #13
stijnthe1st commentedcomplete drupal page
Comment #14
Anonymous (not verified) commentedHuch? Any errors or a completely empty page?
This should not happen ... Has there been an error while patching? Otherwise I made a small - but grave - mistake with this patch ...
Comment #15
stijnthe1st commentedjust a blank screen on http://localhost/drupal
no errors during patching.
Comment #16
Anonymous (not verified) commentedD*mned. My apologies ... I promise another patch for Wednesday or Thursday ..
Comment #17
stijnthe1st commentedk thx
Comment #18
Anonymous (not verified) commentedPlease try this one.
Could you enable Error Reporting in your PHP installation?
--edit: This patch is committed.
Comment #19
stijnthe1st commenteduser warning: Field 'group' doesn't have a default value query: INSERT INTO bookings_resources (parent, name, location, description, default_availability, disabled) VALUES (0, 'test', 'test', 'test', 2, 0) in D:\server\htdocs\drupal\includes\common.inc on line 3431.
notice: Undefined index: #size in D:\server\htdocs\drupal\includes\form.inc on line 1414.
notice: Undefined index: #multiple in D:\server\htdocs\drupal\includes\form.inc on line 1416.
=> The bookable resource test has been failed.
When I click on the public bookings and then on the "settings" tab, i get
notice: Array to string conversion in D:\server\htdocs\drupal\includes\form.inc on line 764.
I'll try to activate the E_ALL settings.
Comment #20
Anonymous (not verified) commentedOkay, I'm going to install a windows based testing system - I cannot reproduce those errors on my systems.
Thanks for your feedback and the patience.
Comment #21
stijnthe1st commentedthis was the error I got earlier (if I'm not mistaken just after the first patch?).
Anyhow, my drupal does work again, expect the bookings does not work.
[Wed May 13 17:29:34 2009] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected ',' in D:\\server\\htdocs\\drupal\\sites\\all\\modules\\bookingsapi\\bookingsapi.forms.inc on line 295.
Comment #22
Anonymous (not verified) commentedYes, this was due to me attaching the wrong patch .. Oh well, we will solve this puzzle :)
Comment #23
Anonymous (not verified) commentedOkay, I found where the problem with the group-column originates - but I have to figure out the best way to fix this.
Comment #24
Anonymous (not verified) commentedPlease apply the attached patch - and call update.php afterwards!
This patch will NOT be committed in its current form. This patch changes the column name of "group" to "grouping" and adds a "set grouping=0 if not set"-check to bookings_save_resource. The problem is, that the column 'group' can not be written (see #463462: drupal_write_record cannot handle column name 'group') and it cannot be renamed easily (see #463502: db_change_field should quote original fieldname).
Comment #25
stijnthe1st commentedHi Tirsales,
I patched, i ran update.php (first i selected bookingsapi (6001), later i tried the same with nothing selected) => both results where negative.
Still have the same message.
notice: Undefined index: resource_id in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 295.
notice: Undefined index: name in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 301.
notice: Undefined index: location in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 307.
notice: Undefined index: description in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 313.
notice: Undefined index: parent in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 319.
notice: Undefined index: disabled in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 333.
user warning: Field 'group' doesn't have a default value query: INSERT INTO bookings_resources (parent, name, location, description, default_availability, disabled) VALUES (0, 'tes', 'test', 'test', 2, 0) in D:\server\htdocs\drupal\includes\common.inc on line 3431.
notice: Undefined index: resource_id in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 295.
notice: Undefined index: name in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 301.
notice: Undefined index: location in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 307.
notice: Undefined index: description in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 313.
notice: Undefined index: parent in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 319.
notice: Undefined index: disabled in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 333.
notice: Undefined index: #size in D:\server\htdocs\drupal\includes\form.inc on line 1414.
notice: Undefined index: #multiple in D:\server\htdocs\drupal\includes\form.inc on line 1416.
In the update.php I got an error message that stated that the resource_id couldn't be an index field (if i interpreted that well).
anyhow the booking still does not work.
question : does it work on your test-environment? Q2 : how is it possible that in my setup it does not work then?
kind regards,
stijn
Comment #26
Anonymous (not verified) commentedI have absolutely NO idea what is wrong with your system ATM. Which columns are present in your resource-table now?
Could you send me a copy of the error-message regarding the update?
Comment #27
stijnthe1st commentedthis is how it looks like now :
Field Type Collation Attributes Null Default Extra Action
resource_id int(10) UNSIGNED No None auto_increment
parent int(10) UNSIGNED No None
group tinyint(3) UNSIGNED No None
name varchar(64) utf8_general_ci No None
location varchar(64) utf8_general_ci No None
description varchar(255) utf8_general_ci No None
default_availability tinyint(4) No 0
disabled tinyint(4) No 0
no content in it.
just as info :when I patch -> my patcher asks me to patch also bookings.install however it seems like there are no changes in it? Correct?
Comment #28
stijnthe1st commentedIndexes:
Action Keyname Type Unique Packed Field Cardinality Collation Null Comment
PRIMARY BTREE Yes No record_id 0 A
timeframe BTREE No No start 0 A
end 0 A
resource BTREE No No resource_id 0 A
record_id BTREE No No record_id 0 A
Comment #29
Anonymous (not verified) commentedThere should be a couple of changes in bookingsapi.install (column group->grouping, added new update-method)
Comment #30
stijnthe1st commentedcan you upload the already patched install file? Apparently patching that file isn't possible for me?
Comment #31
Anonymous (not verified) commentedWill do - please wait for the new bookingsapi-dev release prior to using it! (And update to the latest publicbookings-dev)
Comment #32
Anonymous (not verified) commentedMy apologies. Forgot to attach the file.
I repeat: Use only with the latest dev (or a checkout from CVS (branch: DRUPAL-6--1))
Comment #33
stijnthe1st commentedperhaps this info can be useful :
* notice: Undefined index: resource_id in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 295.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: resource_id in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 295.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[line] => 295
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: resource_id
[2] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[3] => 295
[4] => Array
(
[resource] => Array
(
)
[form] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
)
)
)
)
)
[2] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 237
[function] => bookingsapi_resource_form
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[function] => publicbookings_resource_form
[args] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 366
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_form
[1] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[5] => Array
(
[function] => drupal_retrieve_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 102
[function] => call_user_func_array
[args] => Array
(
[0] => drupal_retrieve_form
[1] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[8] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[10] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
* notice: Undefined index: name in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 301.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: name in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 301.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[line] => 301
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: name
[2] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[3] => 301
[4] => Array
(
[resource] => Array
(
)
[form] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
)
)
)
)
)
)
[2] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 237
[function] => bookingsapi_resource_form
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[function] => publicbookings_resource_form
[args] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 366
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_form
[1] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[5] => Array
(
[function] => drupal_retrieve_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 102
[function] => call_user_func_array
[args] => Array
(
[0] => drupal_retrieve_form
[1] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[8] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[10] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
* notice: Undefined index: location in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 307.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: location in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 307.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[line] => 307
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: location
[2] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[3] => 307
[4] => Array
(
[resource] => Array
(
)
[form] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
)
)
)
)
)
)
[2] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 237
[function] => bookingsapi_resource_form
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[function] => publicbookings_resource_form
[args] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 366
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_form
[1] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[5] => Array
(
[function] => drupal_retrieve_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 102
[function] => call_user_func_array
[args] => Array
(
[0] => drupal_retrieve_form
[1] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[8] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[10] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
* notice: Undefined index: description in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 313.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: description in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 313.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[line] => 313
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: description
[2] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[3] => 313
[4] => Array
(
[resource] => Array
(
)
[form] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
)
)
)
)
)
)
[2] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 237
[function] => bookingsapi_resource_form
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[function] => publicbookings_resource_form
[args] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 366
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_form
[1] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[5] => Array
(
[function] => drupal_retrieve_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 102
[function] => call_user_func_array
[args] => Array
(
[0] => drupal_retrieve_form
[1] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[8] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[10] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
* notice: Undefined index: parent in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 319.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: parent in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 319.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[line] => 319
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: parent
[2] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[3] => 319
[4] => Array
(
[resource] => Array
(
)
[form] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
)
)
)
)
)
)
[2] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 237
[function] => bookingsapi_resource_form
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[function] => publicbookings_resource_form
[args] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 366
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_form
[1] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[5] => Array
(
[function] => drupal_retrieve_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 102
[function] => call_user_func_array
[args] => Array
(
[0] => drupal_retrieve_form
[1] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[8] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[10] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
* notice: Undefined index: disabled in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 333.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: disabled in D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc on line 333.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[line] => 333
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: disabled
[2] => D:\server\htdocs\drupal\sites\all\modules\bookingsapi\bookingsapi.forms.inc
[3] => 333
[4] => Array
(
[resource] => Array
(
)
[form] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
)
[parent] => Array
(
[#type] => bookingsapi_resource_select
[#title] => Parent resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
)
[default_availability] => Array
(
[#title] => Default availability
[#type] => radios
[#options] => Array
(
[2] => Strictly Unavailable
[3] => Unavailable
[4] => Strictly Available
[5] => Available
)
[#description] => If no availability information is defined for a given time, the resource falls back onto this setting.
[#default_value] => 2
)
)
)
)
)
)
[2] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 237
[function] => bookingsapi_resource_form
[args] => Array
(
[0] => Array
(
)
)
)
[3] => Array
(
[function] => publicbookings_resource_form
[args] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 366
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_form
[1] => Array
(
[0] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[5] => Array
(
[function] => drupal_retrieve_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 102
[function] => call_user_func_array
[args] => Array
(
[0] => drupal_retrieve_form
[1] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[8] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[10] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
* notice: Undefined index: #size in D:\server\htdocs\drupal\includes\form.inc on line 1414.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: #size in D:\server\htdocs\drupal\includes\form.inc on line 1414.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 1414
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: #size
[2] => D:\server\htdocs\drupal\includes\form.inc
[3] => 1414
[4] => Array
(
[element] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[select] =>
)
)
)
[2] => Array
(
[function] => theme_select
[args] => Array
(
[0] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[3] => Array
(
[file] => D:\server\htdocs\drupal\includes\theme.inc
[line] => 617
[function] => call_user_func_array
[args] => Array
(
[0] => theme_select
[1] => Array
(
[0] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 2880
[function] => theme
[args] => Array
(
[0] => select
[1] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[5] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 2870
[function] => drupal_render
[args] => Array
(
[0] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 2870
[function] => drupal_render
[args] => Array
(
[0] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => resource_id
)
[#array_parents] => Array
(
[0] => basic
[1] => resource_id
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => resource_id
[#id] => edit-resource-id
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
[#printed] => 1
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => name
)
[#array_parents] => Array
(
[0] => basic
[1] => name
)
[#weight] => 0.001
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => name
[#id] => edit-name
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => location
)
[#array_parents] => Array
(
[0] => basic
[1] => location
)
[#weight] => 0.002
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => location
[#id] => edit-location
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => description
)
[#array_parents] => Array
(
[0] => basic
[1] => description
)
[#weight] => 0.003
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#cols] => 60
[#rows] => 5
[#resizable] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => description
[#id] => edit-description
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[parent] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[default_availability] => Array
(
[#title] => Default availability
[#type] => radios
[#options] => Array
(
[2] => Strictly Unavailable
[3] => Unavailable
[4] => Strictly Available
[5] => Available
)
[#description] => If no availability information is defined for a given time, the resource falls back onto this setting.
[#default_value] => 2
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => default_availability
)
[#array_parents] => Array
(
[0] => basic
[1] => default_availability
)
[#weight] => 0.005
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => expand_radios
)
[#name] => default_availability
[#id] => edit-default-availability
[#value] => 2
[2] => Array
(
[#type] => radio
[#title] => Strictly Unavailable
[#return_value] => 2
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-2
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[3] => Array
(
[#type] => radio
[#title] => Unavailable
[#return_value] => 3
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-3
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[4] => Array
(
[#type] => radio
[#title] => Strictly Available
[#return_value] => 4
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-4
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[5] => Array
(
[#type] => radio
[#title] => Available
[#return_value] => 5
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-5
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.003
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[disabled] => Array
(
[#title] => Disable new bookings from being made
[#type] => checkbox
[#description] => Existing bookings will be preserved.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => disabled
)
[#array_parents] => Array
(
[0] => basic
[1] => disabled
)
[#weight] => 0.006
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#return_value] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => disabled
[#id] => edit-disabled
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
)
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => basic
)
[#array_parents] => Array
(
[0] => basic
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#collapsible] =>
[#collapsed] =>
[#value] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 604
[function] => drupal_render
[args] => Array
(
[0] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => resource_id
)
[#array_parents] => Array
(
[0] => basic
[1] => resource_id
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => resource_id
[#id] => edit-resource-id
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
[#printed] => 1
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => name
)
[#array_parents] => Array
(
[0] => basic
[1] => name
)
[#weight] => 0.001
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => name
[#id] => edit-name
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => location
)
[#array_parents] => Array
(
[0] => basic
[1] => location
)
[#weight] => 0.002
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => location
[#id] => edit-location
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => description
)
[#array_parents] => Array
(
[0] => basic
[1] => description
)
[#weight] => 0.003
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#cols] => 60
[#rows] => 5
[#resizable] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => description
[#id] => edit-description
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[parent] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[default_availability] => Array
(
[#title] => Default availability
[#type] => radios
[#options] => Array
(
[2] => Strictly Unavailable
[3] => Unavailable
[4] => Strictly Available
[5] => Available
)
[#description] => If no availability information is defined for a given time, the resource falls back onto this setting.
[#default_value] => 2
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => default_availability
)
[#array_parents] => Array
(
[0] => basic
[1] => default_availability
)
[#weight] => 0.005
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => expand_radios
)
[#name] => default_availability
[#id] => edit-default-availability
[#value] => 2
[2] => Array
(
[#type] => radio
[#title] => Strictly Unavailable
[#return_value] => 2
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-2
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[3] => Array
(
[#type] => radio
[#title] => Unavailable
[#return_value] => 3
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-3
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[4] => Array
(
[#type] => radio
[#title] => Strictly Available
[#return_value] => 4
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-4
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[5] => Array
(
[#type] => radio
[#title] => Available
[#return_value] => 5
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-5
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.003
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[disabled] => Array
(
[#title] => Disable new bookings from being made
[#type] => checkbox
[#description] => Existing bookings will be preserved.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => disabled
)
[#array_parents] => Array
(
[0] => basic
[1] => disabled
)
[#weight] => 0.006
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#return_value] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => disabled
[#id] => edit-disabled
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
)
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => basic
)
[#array_parents] => Array
(
[0] => basic
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#collapsible] =>
[#collapsed] =>
[#value] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#validate] => Array
(
[0] => publicbookings_resource_form_validate
)
[submit] => Array
(
[#type] => submit
[#value] => Save
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => submit
)
[#array_parents] => Array
(
[0] => submit
)
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => op
[#button_type] => submit
[#executes_submit_callback] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#id] => edit-submit
[#defaults_loaded] => 1
[#sorted] => 1
)
[#submit] => Array
(
[0] => publicbookings_resource_form_submit
)
[#parameters] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
[#build_id] => form-2c84d8ab59b35a48ff59aedea761c114
[#type] => form
[#programmed] =>
[form_build_id] => Array
(
[#type] => hidden
[#value] => form-2c84d8ab59b35a48ff59aedea761c114
[#id] => form-2c84d8ab59b35a48ff59aedea761c114
[#name] => form_build_id
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_build_id
)
[#array_parents] => Array
(
[0] => form_build_id
)
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#token] => publicbookings_resource_add_form
[form_token] => Array
(
[#id] => edit-publicbookings-resource-add-form-form-token
[#type] => token
[#default_value] => f4275f614c4197937eb8195ddfbaf6ff
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_token
)
[#array_parents] => Array
(
[0] => form_token
)
[#weight] => 0.003
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => form_token
[#value] => f4275f614c4197937eb8195ddfbaf6ff
[#defaults_loaded] => 1
[#sorted] => 1
)
[form_id] => Array
(
[#type] => hidden
[#value] => publicbookings_resource_add_form
[#id] => edit-publicbookings-resource-add-form
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_id
)
[#array_parents] => Array
(
[0] => form_id
)
[#weight] => 0.004
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => form_id
[#defaults_loaded] => 1
[#sorted] => 1
)
[#id] => publicbookings-resource-add-form
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#tree] =>
[#parents] => Array
(
)
[#method] => post
[#action] => /drupal/admin/content/publicbookings/resource/add
[#post] => Array
(
)
[#processed] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
)
)
)
[8] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 148
[function] => drupal_render_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => resource_id
)
[#array_parents] => Array
(
[0] => basic
[1] => resource_id
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => resource_id
[#id] => edit-resource-id
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
[#printed] => 1
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => name
)
[#array_parents] => Array
(
[0] => basic
[1] => name
)
[#weight] => 0.001
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => name
[#id] => edit-name
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => location
)
[#array_parents] => Array
(
[0] => basic
[1] => location
)
[#weight] => 0.002
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => location
[#id] => edit-location
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => description
)
[#array_parents] => Array
(
[0] => basic
[1] => description
)
[#weight] => 0.003
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#cols] => 60
[#rows] => 5
[#resizable] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => description
[#id] => edit-description
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[parent] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[default_availability] => Array
(
[#title] => Default availability
[#type] => radios
[#options] => Array
(
[2] => Strictly Unavailable
[3] => Unavailable
[4] => Strictly Available
[5] => Available
)
[#description] => If no availability information is defined for a given time, the resource falls back onto this setting.
[#default_value] => 2
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => default_availability
)
[#array_parents] => Array
(
[0] => basic
[1] => default_availability
)
[#weight] => 0.005
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => expand_radios
)
[#name] => default_availability
[#id] => edit-default-availability
[#value] => 2
[2] => Array
(
[#type] => radio
[#title] => Strictly Unavailable
[#return_value] => 2
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-2
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[3] => Array
(
[#type] => radio
[#title] => Unavailable
[#return_value] => 3
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-3
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[4] => Array
(
[#type] => radio
[#title] => Strictly Available
[#return_value] => 4
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-4
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[5] => Array
(
[#type] => radio
[#title] => Available
[#return_value] => 5
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-5
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.003
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[disabled] => Array
(
[#title] => Disable new bookings from being made
[#type] => checkbox
[#description] => Existing bookings will be preserved.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => disabled
)
[#array_parents] => Array
(
[0] => basic
[1] => disabled
)
[#weight] => 0.006
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#return_value] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => disabled
[#id] => edit-disabled
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
)
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => basic
)
[#array_parents] => Array
(
[0] => basic
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#collapsible] =>
[#collapsed] =>
[#value] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#validate] => Array
(
[0] => publicbookings_resource_form_validate
)
[submit] => Array
(
[#type] => submit
[#value] => Save
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => submit
)
[#array_parents] => Array
(
[0] => submit
)
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => op
[#button_type] => submit
[#executes_submit_callback] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#id] => edit-submit
[#defaults_loaded] => 1
[#sorted] => 1
)
[#submit] => Array
(
[0] => publicbookings_resource_form_submit
)
[#parameters] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
[#build_id] => form-2c84d8ab59b35a48ff59aedea761c114
[#type] => form
[#programmed] =>
[form_build_id] => Array
(
[#type] => hidden
[#value] => form-2c84d8ab59b35a48ff59aedea761c114
[#id] => form-2c84d8ab59b35a48ff59aedea761c114
[#name] => form_build_id
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_build_id
)
[#array_parents] => Array
(
[0] => form_build_id
)
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#token] => publicbookings_resource_add_form
[form_token] => Array
(
[#id] => edit-publicbookings-resource-add-form-form-token
[#type] => token
[#default_value] => f4275f614c4197937eb8195ddfbaf6ff
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_token
)
[#array_parents] => Array
(
[0] => form_token
)
[#weight] => 0.003
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => form_token
[#value] => f4275f614c4197937eb8195ddfbaf6ff
[#defaults_loaded] => 1
[#sorted] => 1
)
[form_id] => Array
(
[#type] => hidden
[#value] => publicbookings_resource_add_form
[#id] => edit-publicbookings-resource-add-form
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_id
)
[#array_parents] => Array
(
[0] => form_id
)
[#weight] => 0.004
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => form_id
[#defaults_loaded] => 1
[#sorted] => 1
)
[#id] => publicbookings-resource-add-form
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#tree] =>
[#parents] => Array
(
)
[#method] => post
[#action] => /drupal/admin/content/publicbookings/resource/add
[#post] => Array
(
)
[#processed] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
)
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[10] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[11] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[12] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
* notice: Undefined index: #multiple in D:\server\htdocs\drupal\includes\form.inc on line 1416.
Array
(
[0] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 615
[function] => drupal_set_message
[args] => Array
(
[0] => notice: Undefined index: #multiple in D:\server\htdocs\drupal\includes\form.inc on line 1416.
[1] => error
)
)
[1] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 1416
[function] => drupal_error_handler
[args] => Array
(
[0] => 8
[1] => Undefined index: #multiple
[2] => D:\server\htdocs\drupal\includes\form.inc
[3] => 1416
[4] => Array
(
[element] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
[class] => form-select
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[select] =>
[size] =>
)
)
)
[2] => Array
(
[function] => theme_select
[args] => Array
(
[0] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[3] => Array
(
[file] => D:\server\htdocs\drupal\includes\theme.inc
[line] => 617
[function] => call_user_func_array
[args] => Array
(
[0] => theme_select
[1] => Array
(
[0] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
)
[4] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 2880
[function] => theme
[args] => Array
(
[0] => select
[1] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[5] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 2870
[function] => drupal_render
[args] => Array
(
[0] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[6] => Array
(
[file] => D:\server\htdocs\drupal\includes\common.inc
[line] => 2870
[function] => drupal_render
[args] => Array
(
[0] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => resource_id
)
[#array_parents] => Array
(
[0] => basic
[1] => resource_id
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => resource_id
[#id] => edit-resource-id
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
[#printed] => 1
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => name
)
[#array_parents] => Array
(
[0] => basic
[1] => name
)
[#weight] => 0.001
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => name
[#id] => edit-name
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => location
)
[#array_parents] => Array
(
[0] => basic
[1] => location
)
[#weight] => 0.002
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => location
[#id] => edit-location
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => description
)
[#array_parents] => Array
(
[0] => basic
[1] => description
)
[#weight] => 0.003
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#cols] => 60
[#rows] => 5
[#resizable] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => description
[#id] => edit-description
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[parent] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[default_availability] => Array
(
[#title] => Default availability
[#type] => radios
[#options] => Array
(
[2] => Strictly Unavailable
[3] => Unavailable
[4] => Strictly Available
[5] => Available
)
[#description] => If no availability information is defined for a given time, the resource falls back onto this setting.
[#default_value] => 2
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => default_availability
)
[#array_parents] => Array
(
[0] => basic
[1] => default_availability
)
[#weight] => 0.005
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => expand_radios
)
[#name] => default_availability
[#id] => edit-default-availability
[#value] => 2
[2] => Array
(
[#type] => radio
[#title] => Strictly Unavailable
[#return_value] => 2
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-2
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[3] => Array
(
[#type] => radio
[#title] => Unavailable
[#return_value] => 3
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-3
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[4] => Array
(
[#type] => radio
[#title] => Strictly Available
[#return_value] => 4
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-4
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[5] => Array
(
[#type] => radio
[#title] => Available
[#return_value] => 5
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-5
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.003
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[disabled] => Array
(
[#title] => Disable new bookings from being made
[#type] => checkbox
[#description] => Existing bookings will be preserved.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => disabled
)
[#array_parents] => Array
(
[0] => basic
[1] => disabled
)
[#weight] => 0.006
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#return_value] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => disabled
[#id] => edit-disabled
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
)
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => basic
)
[#array_parents] => Array
(
[0] => basic
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#collapsible] =>
[#collapsed] =>
[#value] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
)
)
[7] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 604
[function] => drupal_render
[args] => Array
(
[0] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => resource_id
)
[#array_parents] => Array
(
[0] => basic
[1] => resource_id
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => resource_id
[#id] => edit-resource-id
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
[#printed] => 1
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => name
)
[#array_parents] => Array
(
[0] => basic
[1] => name
)
[#weight] => 0.001
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => name
[#id] => edit-name
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => location
)
[#array_parents] => Array
(
[0] => basic
[1] => location
)
[#weight] => 0.002
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => location
[#id] => edit-location
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => description
)
[#array_parents] => Array
(
[0] => basic
[1] => description
)
[#weight] => 0.003
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#cols] => 60
[#rows] => 5
[#resizable] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => description
[#id] => edit-description
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[parent] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[default_availability] => Array
(
[#title] => Default availability
[#type] => radios
[#options] => Array
(
[2] => Strictly Unavailable
[3] => Unavailable
[4] => Strictly Available
[5] => Available
)
[#description] => If no availability information is defined for a given time, the resource falls back onto this setting.
[#default_value] => 2
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => default_availability
)
[#array_parents] => Array
(
[0] => basic
[1] => default_availability
)
[#weight] => 0.005
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => expand_radios
)
[#name] => default_availability
[#id] => edit-default-availability
[#value] => 2
[2] => Array
(
[#type] => radio
[#title] => Strictly Unavailable
[#return_value] => 2
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-2
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[3] => Array
(
[#type] => radio
[#title] => Unavailable
[#return_value] => 3
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-3
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[4] => Array
(
[#type] => radio
[#title] => Strictly Available
[#return_value] => 4
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-4
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[5] => Array
(
[#type] => radio
[#title] => Available
[#return_value] => 5
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-5
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.003
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[disabled] => Array
(
[#title] => Disable new bookings from being made
[#type] => checkbox
[#description] => Existing bookings will be preserved.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => disabled
)
[#array_parents] => Array
(
[0] => basic
[1] => disabled
)
[#weight] => 0.006
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#return_value] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => disabled
[#id] => edit-disabled
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
)
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => basic
)
[#array_parents] => Array
(
[0] => basic
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#collapsible] =>
[#collapsed] =>
[#value] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#validate] => Array
(
[0] => publicbookings_resource_form_validate
)
[submit] => Array
(
[#type] => submit
[#value] => Save
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => submit
)
[#array_parents] => Array
(
[0] => submit
)
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => op
[#button_type] => submit
[#executes_submit_callback] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#id] => edit-submit
[#defaults_loaded] => 1
[#sorted] => 1
)
[#submit] => Array
(
[0] => publicbookings_resource_form_submit
)
[#parameters] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
[#build_id] => form-2c84d8ab59b35a48ff59aedea761c114
[#type] => form
[#programmed] =>
[form_build_id] => Array
(
[#type] => hidden
[#value] => form-2c84d8ab59b35a48ff59aedea761c114
[#id] => form-2c84d8ab59b35a48ff59aedea761c114
[#name] => form_build_id
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_build_id
)
[#array_parents] => Array
(
[0] => form_build_id
)
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#token] => publicbookings_resource_add_form
[form_token] => Array
(
[#id] => edit-publicbookings-resource-add-form-form-token
[#type] => token
[#default_value] => f4275f614c4197937eb8195ddfbaf6ff
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_token
)
[#array_parents] => Array
(
[0] => form_token
)
[#weight] => 0.003
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => form_token
[#value] => f4275f614c4197937eb8195ddfbaf6ff
[#defaults_loaded] => 1
[#sorted] => 1
)
[form_id] => Array
(
[#type] => hidden
[#value] => publicbookings_resource_add_form
[#id] => edit-publicbookings-resource-add-form
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_id
)
[#array_parents] => Array
(
[0] => form_id
)
[#weight] => 0.004
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => form_id
[#defaults_loaded] => 1
[#sorted] => 1
)
[#id] => publicbookings-resource-add-form
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#tree] =>
[#parents] => Array
(
)
[#method] => post
[#action] => /drupal/admin/content/publicbookings/resource/add
[#post] => Array
(
)
[#processed] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
)
)
)
[8] => Array
(
[file] => D:\server\htdocs\drupal\includes\form.inc
[line] => 148
[function] => drupal_render_form
[args] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[basic] => Array
(
[#type] => fieldset
[#title] => Bookable resource
[resource_id] => Array
(
[#type] => value
[#value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => resource_id
)
[#array_parents] => Array
(
[0] => basic
[1] => resource_id
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => resource_id
[#id] => edit-resource-id
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
[#printed] => 1
)
[name] => Array
(
[#title] => Resource name
[#type] => textfield
[#description] => Such as 'Room 312' or 'Computer #31'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => name
)
[#array_parents] => Array
(
[0] => basic
[1] => name
)
[#weight] => 0.001
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => name
[#id] => edit-name
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[location] => Array
(
[#title] => Resource location
[#type] => textfield
[#description] => Such as '3rd floor' or 'Lab X350'.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => location
)
[#array_parents] => Array
(
[0] => basic
[1] => location
)
[#weight] => 0.002
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#size] => 60
[#maxlength] => 128
[#autocomplete_path] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => location
[#id] => edit-location
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[description] => Array
(
[#title] => Resource description
[#type] => textarea
[#description] => Any other information that describes the bookable resource.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => description
)
[#array_parents] => Array
(
[0] => basic
[1] => description
)
[#weight] => 0.003
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#cols] => 60
[#rows] => 5
[#resizable] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => description
[#id] => edit-description
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#printed] => 1
)
[parent] => Array
(
[#type] => select
[#title] => Resource
[#description] => If this resource has a parent, it will inherit all bookings and availabilities of the parent.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => parent
)
[#array_parents] => Array
(
[0] => basic
[1] => parent
)
[#weight] => 0.004
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => bookingsapi_resource_select_process
)
[#element_validate] => Array
(
[0] => bookingsapi_resource_select_validate
)
[#bookingsapi_empty] =>
[#bookingsapi_showall] =>
[#bookingsapi_where] =>
[#name] => parent
[#id] => edit-parent
[#value] =>
[#options] => Array
(
[0] => - Pick a resource.
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[default_availability] => Array
(
[#title] => Default availability
[#type] => radios
[#options] => Array
(
[2] => Strictly Unavailable
[3] => Unavailable
[4] => Strictly Available
[5] => Available
)
[#description] => If no availability information is defined for a given time, the resource falls back onto this setting.
[#default_value] => 2
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => default_availability
)
[#array_parents] => Array
(
[0] => basic
[1] => default_availability
)
[#weight] => 0.005
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => expand_radios
)
[#name] => default_availability
[#id] => edit-default-availability
[#value] => 2
[2] => Array
(
[#type] => radio
[#title] => Strictly Unavailable
[#return_value] => 2
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-2
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[3] => Array
(
[#type] => radio
[#title] => Unavailable
[#return_value] => 3
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-3
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[4] => Array
(
[#type] => radio
[#title] => Strictly Available
[#return_value] => 4
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-4
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[5] => Array
(
[#type] => radio
[#title] => Available
[#return_value] => 5
[#default_value] => 2
[#attributes] => Array
(
)
[#parents] => Array
(
[0] => default_availability
)
[#id] => edit-default-availability-5
[#ahah] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#weight] => 0.003
[#processed] => 1
[#description] =>
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => default_availability
[#value] => 2
[#defaults_loaded] => 1
[#sorted] => 1
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[disabled] => Array
(
[#title] => Disable new bookings from being made
[#type] => checkbox
[#description] => Existing bookings will be preserved.
[#default_value] =>
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => disabled
)
[#array_parents] => Array
(
[0] => basic
[1] => disabled
)
[#weight] => 0.006
[#processed] => 1
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#return_value] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => disabled
[#id] => edit-disabled
[#value] =>
[#defaults_loaded] => 1
[#sorted] => 1
)
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => basic
)
[#array_parents] => Array
(
[0] => basic
)
[#weight] => 0
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#collapsible] =>
[#collapsed] =>
[#value] =>
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#validate] => Array
(
[0] => publicbookings_resource_form_validate
)
[submit] => Array
(
[#type] => submit
[#value] => Save
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => submit
)
[#array_parents] => Array
(
[0] => submit
)
[#weight] => 0.001
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => op
[#button_type] => submit
[#executes_submit_callback] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#id] => edit-submit
[#defaults_loaded] => 1
[#sorted] => 1
)
[#submit] => Array
(
[0] => publicbookings_resource_form_submit
)
[#parameters] => Array
(
[0] => publicbookings_resource_add_form
[1] => Array
(
[storage] =>
[submitted] =>
[post] => Array
(
)
)
)
[#build_id] => form-2c84d8ab59b35a48ff59aedea761c114
[#type] => form
[#programmed] =>
[form_build_id] => Array
(
[#type] => hidden
[#value] => form-2c84d8ab59b35a48ff59aedea761c114
[#id] => form-2c84d8ab59b35a48ff59aedea761c114
[#name] => form_build_id
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_build_id
)
[#array_parents] => Array
(
[0] => form_build_id
)
[#weight] => 0.002
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#defaults_loaded] => 1
[#sorted] => 1
)
[#token] => publicbookings_resource_add_form
[form_token] => Array
(
[#id] => edit-publicbookings-resource-add-form-form-token
[#type] => token
[#default_value] => f4275f614c4197937eb8195ddfbaf6ff
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_token
)
[#array_parents] => Array
(
[0] => form_token
)
[#weight] => 0.003
[#processed] =>
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#name] => form_token
[#value] => f4275f614c4197937eb8195ddfbaf6ff
[#defaults_loaded] => 1
[#sorted] => 1
)
[form_id] => Array
(
[#type] => hidden
[#value] => publicbookings_resource_add_form
[#id] => edit-publicbookings-resource-add-form
[#post] => Array
(
)
[#programmed] =>
[#tree] =>
[#parents] => Array
(
[0] => form_id
)
[#array_parents] => Array
(
[0] => form_id
)
[#weight] => 0.004
[#processed] => 1
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#input] => 1
[#process] => Array
(
[0] => form_expand_ahah
)
[#name] => form_id
[#defaults_loaded] => 1
[#sorted] => 1
)
[#id] => publicbookings-resource-add-form
[#description] =>
[#attributes] => Array
(
)
[#required] =>
[#tree] =>
[#parents] => Array
(
)
[#method] => post
[#action] => /drupal/admin/content/publicbookings/resource/add
[#post] => Array
(
)
[#processed] =>
[#defaults_loaded] => 1
[#sorted] => 1
[#title] =>
)
)
)
[9] => Array
(
[file] => D:\server\htdocs\drupal\sites\all\modules\publicbookings\publicbookings.admin.inc
[line] => 194
[function] => drupal_get_form
[args] => Array
(
[0] => publicbookings_resource_add_form
)
)
[10] => Array
(
[function] => publicbookings_resource_add
[args] => Array
(
)
)
[11] => Array
(
[file] => D:\server\htdocs\drupal\includes\menu.inc
[line] => 348
[function] => call_user_func_array
[args] => Array
(
[0] => publicbookings_resource_add
[1] => Array
(
)
)
)
[12] => Array
(
[file] => D:\server\htdocs\drupal\index.php
[line] => 18
[function] => menu_execute_active_handler
[args] => Array
(
)
)
)
Comment #34
Anonymous (not verified) commentedThanks for the debugging message.
Did you update to the latest dev (published today)?
I'm just wondering because I'm doing an explicit check for the existence of $resource['resource_id'] prior to accessing it ...
Comment #35
stijnthe1st commentedyes. I installed the latest version of bookings api (dev version) -> patch is overwrited by consequence.
Comment #36
Anonymous (not verified) commentedLatest dev + files from the zip + update.php called?
And the latest dev contains a check, thats why I am wondering how this error could occur ..
Important part of bookingsapi.forms.inc:
I'm only accessing $resource['resource_id'] after a previous check for existance returned true.
Oh well, still searching.
Comment #37
stijnthe1st commentedyep things I did :
download latest dev for bookingsapi and publicbookings. Download zip file from here. Put them all ( in sequence first devs, then zip file) in sites/all/modules/ folder.
Run update.php and choose 6001 for system / date / date_api / bookingsapi/ public bookings.
Error I got at update:
bookingsapi module
Update #6001
ALTER TABLE {bookings_resources} CHANGE default_availability `default_availability` TINYINT NOT NULL DEFAULT 0
Failed: ALTER TABLE {bookings_records} ADD INDEX resource (resource_id)
Comment #38
Anonymous (not verified) commentedCould you call update.php again? It should have been update_6002 for Bookings API. 6001 is the latest from DEV, 6002 is contained in the above ZIP-file (renames column group->grouping, not committed so far).
(The failed ALTER TABLE is strange ... it should not fail. Which data does the records-table contain? Do you have any other problems with your Drupal-installation and DB-access?)
Comment #39
stijnthe1st commentednope 6002 not available for update. Still just 6001.
I've redone 6001 , the detailled log message for the "failure" error is
Duplicate key name 'resource' query: ALTER TABLE bookings_records ADD INDEX resource (resource_id) in D:\server\htdocs\drupal\includes\database.mysql-common.inc on line 434.
Comment #40
stijnthe1st commentedbasicly, if I change the group to grouping in my phpmyadmin is that what you're trying to force with the update?
Comment #41
stijnthe1st commentedi did do that now, and that does not work either
Comment #42
Anonymous (not verified) commentedAre you absolutely sure that you have extracted the files inside of the ZIP-File to the correct directory and that this directory is the bookingsapi-installation directory? I've just re-tested it - it gives me a version of 6002 as latest update-version and it constructs the correct table-changes.
Yes, the update is changing the column-name from group to grouping - but, and that is a big but, if your drupal-installation does not even show the update-version, there is a serious error somewhere...
Are you absolutely sure that you *are* using a mysql-database and that you are extracting files to the correct directory?
Comment #43
stijnthe1st commentedHi,
OK, you're right. I had unzipped the files, but apparantly took the wrong ones.
The bookingsapi is now 6002. I've done the update and no errors in updating.
i've also redownloaded the public bookings and then again ran the update.php.
However ... still the same error : resources update has been failed when i try to add a resource.
I'm 200% sur that I use mysql :).
Comment #44
Anonymous (not verified) commentedOkay, this gives me some additional information. Still not sure what exactly is the problem, but I have some idea where to look ;)
Comment #45
stijnthe1st commentedtirsales,
however on my localhost the problem is still there. I've done a fresh install on another server and there it works fine....
Comment #46
Anonymous (not verified) commentedDo you have some non-standard php installation or configuration on your localhost?
Comment #47
stijnthe1st commentednot that I'm aware of.
Now that i've seen the functionalities, it seems quiet good !
However, I wonder what would be the timeframe before the modifications will be working concerning "node type" = resource.
I think that offers a lot of positive things, because : you can freely add some fields. And you can restrict permissions.
THen i have a suggestion for the view.
Do you think that it's possible to make a calendar view ?
I'm willing to help where possible if i'm supported.
Comment #48
Anonymous (not verified) commentedYes, I believe that a calender view will be possible. Regarding the timeframe .. sorry, but at the moment I really cannot say more then "its done when its done". We are evaluating several possible methods to add node-type resources (e.g. fixed types, fixed fields, free fields, etc) and are still testing which method would be best.
Thanks for the feedback :)
Comment #49
Anonymous (not verified) commentedCould you test the attached patch?
Comment #50
Anonymous (not verified) commented@stijnthe1st: Is the issue still open? And if yes - does the above patch solve your problem?
Comment #51
Anonymous (not verified) commentedSetting this to fix. Feel free to reopen if the problem persists.
--edit: A modified version of the above patches has been committed. Make sure to update to the latest dev (released 5th of June or later) and call update.php afterwards!
Comment #52
stijnthe1st commentedok thx