Closed (fixed)
Project:
Date iCal
Version:
7.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2012 at 23:50 UTC
Updated:
16 Jan 2013 at 02:36 UTC
Jump to comment: Most recent file
Some entities doesn't have 'Views mode' set correctly
Need to check if the entities has view mode set correctly first
Reviews need
N/A
See diff below
function date_ical_entity_info_alter(&$entity_info) {
foreach ($entity_info as $entity_type => $info) {
+ if(!isset($entity_info[$entity_type]['view modes'])) {
+ $entity_info[$entity_type]['view modes'] = array();
+ }
$entity_info[$entity_type]['view modes'] += array(
'ical' => array(
'label' => t('iCal'),
'custom settings' => TRUE,
),
);
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | date_ical-view-modes-fix-1793868-1.patch | 821 bytes | coredumperror |
Comments
Comment #1
coredumperror commentedNevermind, ignore this comment.
Comment #2
coredumperror commentedApplied and committed to 7.x-1.x-dev. This will be available in the dev build within a few hours, and the official 7.x-1.2 release some time this week.
However, I strongly suggest upgrading to the 7.x-2.x branch, since 7.x-1.x is in bug-fix only mode now, and will soon be abandoned. If you have any problems with the 7.x-2.x branch, please open a new issue.