Is Available

Component ID

2064629

Component name

Is Available

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Check the availability of a resource type (e.g. rooms, projectors). Configure the search settings under Admin->Configure->Is Available.

Required resource type setup:
- Every resource type is identified by building name and room number.
- Resource types are entity types, and their availabilities are determined by (a) their referencing content type(s).

Notes:
- The original block must be disabled, and only multiblock instances enabled. (This is due to a quirk in hook_block_save that doesn't allow default multiblock ID values.)
- The "- All -" option refers only to the buildings the user is authorized to search over (set by the admin under Admin->Configure->Is Available).
- The building name displayed is the same as its database machine name.
- In the Admin settings form, only entity types that have a title column (in the database) will be accessible.

How to set up a search form block:
1) Go to Admin->Configuration->Is Available, and create a new setting.
2) Create a new multiblock instance under Structure->Blocks->Instances, point it to your new setting from (1), and save. Please ensure that the original block is disabled.