Problem/Motivation

Some entities doesn't have 'Views mode' set correctly

Proposed resolution

Need to check if the entities has view mode set correctly first

Remaining tasks

Reviews need

User interface changes

N/A

API changes

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,
      ),
    );
  }
}

Comments

coredumperror’s picture

StatusFileSize
new821 bytes

Nevermind, ignore this comment.

coredumperror’s picture

Status: Active » Closed (fixed)

Applied 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.