Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Not a huge problem, but it does make it harder to read the code and check it:
/**
* Implements hook_eck_bundle_info().
*/
function timetable_feature_rooms_eck_bundle_info() {
$items = array(
'room_room' => array(
'machine_name' => 'room_room',
'entity_type' => 'room',
'name' => 'room',
'label' => 'Room',
),
);
return $items;
}
/**
* Implements hook_eck_entity_type_info().
*/
function timetable_feature_rooms_eck_entity_type_info() {
$items = array(
'room' => array(
'name' => 'room',
'label' => 'Room',
'properties' => array(
'title' => array(
'label' => 'Title',
'type' => 'text',
'behavior' => 'title',
),
),
),
);
return $items;
}
Comments
Comment #1
fmizzell CreditAttribution: fmizzell commentedI tested this, and it seems like the issue has been fixed. I ran "drush coder-review --sniffer --severity=minor created_feature" and no issues were reported.