You are here

function _views_data_export_migration_style_plugin_mappings in Views data export 6.3

Same name and namespace in other branches
  1. 6 migration/views_data_export_migration.module \_views_data_export_migration_style_plugin_mappings()
  2. 6.2 migration/views_data_export_migration.module \_views_data_export_migration_style_plugin_mappings()

Helper function that maps views_bonus_export style plugins names to views_data_export's versions of them

2 calls to _views_data_export_migration_style_plugin_mappings()
views_data_export_migration_convert in migration/views_data_export_migration.module
Converts all views_bonus_export displays on the given view to views_data_export displays and returns the new view
_views_data_export_migratable_displays in migration/views_data_export_migration.module
Helper function that returns all the migratable displays in a given view

File

migration/views_data_export_migration.module, line 237
Provides helpers and UI (admin/build/views/tools/views-data-export-migration) for migrating views_bonus_export views to views_data_export.

Code

function _views_data_export_migration_style_plugin_mappings($k = NULL) {
  $mappings = array(
    'views_csv' => 'views_data_export_csv',
    'views_doc' => 'views_data_export_doc',
    'views_txt' => 'views_data_export_txt',
    'views_xls' => 'views_data_export_xls',
    'views_xml' => 'views_data_export_xml',
  );
  if (isset($k)) {
    return $mappings[$k];
  }
  return $mappings;
}