function taxonomy_csv_format_geotaxonomy in Taxonomy CSV import/export 6.5
Same name and namespace in other branches
- 6.2 formats/geotaxonomy.format.inc \taxonomy_csv_format_geotaxonomy()
- 6.3 formats/geotaxonomy.format.inc \taxonomy_csv_format_geotaxonomy()
- 6.4 formats/geotaxonomy.format.inc \taxonomy_csv_format_geotaxonomy()
Return infos on the format.
File
- formats/
geotaxonomy.format.inc, line 13 - Plug-in that manages geotaxonomy vocabularies import/export.
Code
function taxonomy_csv_format_geotaxonomy() {
return array(
'format' => 'geotaxonomy',
'name' => t('Geotaxonomy'),
'needed_module' => 'geotaxonomy',
'import_format' => t('Geotaxonomy'),
'export_format' => t('Geotaxonomy'),
'import_allowed' => array(
TAXONOMY_CSV_EXISTING_UPDATE,
TAXONOMY_CSV_EXISTING_UPDATE_REPLACE,
TAXONOMY_CSV_EXISTING_IGNORE,
),
'import_previous' => TRUE,
// Because import remembers all previous_items.
'specific_fields' => TRUE,
'description' => t('Import <a href="!link">geotaxonomy</a> terms.', array(
'!link' => url('http://drupal.org/project/geotaxonomy'),
)),
'description_format' => t('name, latitude, longitude, parent, top, right, bottom, left boundaries'),
'description_example' => t('"Paris", 48.833, 2.333, "Île-de-France"') . '</li><li>' . t('"Île-de-France", 47, 2, "France"'),
'description_long' => t('Only name, latitude and longitude are needed. To set a parent is recommended to get a hierarchical structure.'),
'import_options_help' => t('"Merge" and "Replace" are very similar, because geotaxonomy items are unique: there are only one latitude, longitude, etc. Difference is for parents. With "Merge", existing parents will be kept. With "Replace", they will be removed.'),
);
}