Revision 5522e328
Added by Lorna Morris about 11 years ago
7.x/modules/dwca_export/dwca_export.module | ||
---|---|---|
225 | 225 |
foreach($views_map as $filename=>$view_data){ |
226 | 226 |
|
227 | 227 |
$view = views_get_view($view_data['view_name']); |
228 |
|
|
229 |
//lorna |
|
230 |
// Get the view and its fields. |
|
231 |
$view->set_display(); |
|
232 |
$fields = $view->display_handler->get_field_labels(); |
|
233 |
foreach ($fields as $field_key => $field_label) { |
|
234 |
//$field_properties = $field_copy; |
|
235 |
//$field_properties['title'] = $field_label; |
|
236 |
//$fields[$field_key] = $field_properties; |
|
237 |
if ($field_label == 'uninomial') { |
|
238 |
drupal_set_message(t('The field label is... ') . $field_label); |
|
239 |
} |
|
240 |
} |
|
241 |
//end lorna |
|
242 |
|
|
243 |
|
|
228 | 244 |
$options = array ( |
229 | 245 |
'output_file' => $filename |
230 | 246 |
); |
Also available in: Unified diff
added code to create new views for extensions