function _rooms_description_installed_instances in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Helps to create field instances necessary for this module.
Return value
array Instances to create.
1 call to _rooms_description_installed_instances()
- rooms_description_content_type_install in modules/
rooms_unit/ rooms_unit.install - Creates content type for rooms unit type description.
File
- modules/
rooms_unit/ rooms_unit.install, line 325 - Sets up the base table for our entity and a table to store information about the entity types.
Code
function _rooms_description_installed_instances() {
$t = get_t();
return array(
'unit_description_description' => array(
'field_name' => 'unit_description_description',
'label' => $t('A description of this unit type.'),
'widget' => array(
'type' => 'text_textarea',
),
'display' => array(
'unit_description_list' => array(
'label' => 'hidden',
'type' => 'unit_description_description',
),
),
),
'unit_description_image' => array(
'field_name' => 'unit_description_image',
'label' => $t('Image'),
'required' => FALSE,
'widget' => array(
'type' => 'image_image',
'weight' => 2.1,
),
'display' => array(
'unit_description_list' => array(
'label' => 'hidden',
'type' => 'image_link_content__thumbnail',
),
),
),
);
}