Loading media_pane.module +3 −1 Original line number Diff line number Diff line Loading @@ -43,12 +43,14 @@ function media_pane_entity_info_alter(&$entity_info) { /** * Helper function to collect all available view modes for the file entity. * * @return array * Return an array of view modes keyed by machine name. */ function media_pane_get_view_mode_options() { $options = array('default' => t('Default')); $file_info = entity_get_info('file'); $file_info = entity_get_info('fieldable_panels_pane'); foreach ($file_info['view modes'] as $name => $def) { $options[$name] = $def['label']; } Loading Loading
media_pane.module +3 −1 Original line number Diff line number Diff line Loading @@ -43,12 +43,14 @@ function media_pane_entity_info_alter(&$entity_info) { /** * Helper function to collect all available view modes for the file entity. * * @return array * Return an array of view modes keyed by machine name. */ function media_pane_get_view_mode_options() { $options = array('default' => t('Default')); $file_info = entity_get_info('file'); $file_info = entity_get_info('fieldable_panels_pane'); foreach ($file_info['view modes'] as $name => $def) { $options[$name] = $def['label']; } Loading