Project

General

Profile

« Previous | Next » 

Revision 5522e328

Added by Lorna Morris about 12 years ago

added code to create new views for extensions

View differences:

7.x/modules/dwca_export/dwca_export.strongarm.inc
1 1
<?php
2 2

  
3
/**
4
 * Set up the map containing the file name to view name mapping with default values
5
 * @return multitype:stdClass
6
 */
3 7
function dwca_export_strongarm(){
4 8

  
5 9
	$export = array();
......
15 19
			'out_file_url' => NULL
16 20
		),
17 21
		'typesandspecimen' => array(
18
			'view_name'=> 'view_test_specimen_export',
22
			'view_name'=> 'dwca_export_specimen',
19 23
			'display_id' => 'views_data_export_1',
20 24
			'out_file_url' => NULL
21
		)
25
		),
26
		'reference' => array(
27
			'view_name'=> 'dwca_export_reference',
28
			'display_id' => 'views_data_export_1',
29
			'out_file_url' => NULL
30
		),
31
		'image' => array(
32
			'view_name'=> 'dwca_export_image',
33
			'display_id' => 'views_data_export_1',
34
			'out_file_url' => NULL
35
		),
36
		//'description' => array(
37
			//'view_name'=> 'dwca_export_description',
38
			//'display_id' => 'views_data_export_1',
39
			//'out_file_url' => NULL
40
		//)
41
	'description' => array(
42
				'view_name'=> 'dwca_export_description',
43
				'display_id' => 'views_data_export_1',
44
				'out_file_url' => NULL
45
	)
22 46
	);
23 47
	$export['dwca_export_archive_descriptor_file_map'] = $strongarm;
24 48
	

Also available in: Unified diff