You are here

function panopoly_magic_convert_view_settings in Panopoly Magic 7

2 calls to panopoly_magic_convert_view_settings()
panopoly_magic_form_views_content_views_panes_content_type_edit_form_alter in ./panopoly_magic.module
Implementation of hook_form_FORM_ID_alter()
panopoly_magic_views_pre_view in ./panopoly_magic.module
Implements hook_views_pre_view()

File

./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';
}