function panopoly_magic_convert_view_settings in Panopoly 7
2 calls to panopoly_magic_convert_view_settings()
- panopoly_magic_form_views_content_views_panes_content_type_edit_form_alter in modules/
panopoly/ panopoly_magic/ panopoly_magic.module - Implementation of hook_form_FORM_ID_alter()
- panopoly_magic_views_pre_view in modules/
panopoly/ panopoly_magic/ panopoly_magic.module - Implements hook_views_pre_view()
File
- modules/
panopoly/ panopoly_magic/ panopoly_magic.module, line 1934
Code
function panopoly_magic_convert_view_settings($view_settings) {
// The 'fields' and 'table' view settings apply to any entity type.
if (in_array($view_settings, array(
'fields',
'table',
))) {
return $view_settings;
}
// We convert other view settings to 'rendered_entity' (which could be
// 'node' or 'files' or others that are specific to an entity type).
return 'rendered_entity';
}