array(
'#title' => t('JSON'),
'#module' => 'node_export',
'#file' => drupal_get_path('module', 'node_export') . '/formats/json.inc',
'#description' => t(
'JavaScript Object Notation code.',
array(
'!json' => 'http://en.wikipedia.org/wiki/JSON'
)
),
'#mime' => 'application/json',
'#export_callback' => 'node_export_json_export',
'#import_callback' => 'node_export_json_import',
),
'drupal' => array(
'#title' => t('Drupal var export'),
'#module' => 'node_export',
'#file' => drupal_get_path('module', 'node_export') . '/formats/drupal.inc',
'#description' => t(
'Drupal var export code.',
array(
'!drupal' => 'http://api.drupal.org/api/drupal/includes!utility.inc/function/drupal_var_export/7'
)
),
'#export_callback' => 'node_export_drupal_export',
'#import_callback' => 'node_export_drupal_import',
),
'serialize' => array(
'#title' => t('Serialize'),
'#module' => 'node_export',
'#file' => drupal_get_path('module', 'node_export') . '/formats/serialize.inc',
'#description' => t(
'Very robust, though not human readable, representation through Serialization using the PHP serialize function.',
array(
'!wiki' => 'http://tools.ietf.org/html/rfc4180',
'!php' => 'http://en.wikipedia.org/wiki/Comma-separated_values'
)
),
'#export_callback' => 'node_export_serialize_export',
'#import_callback' => 'node_export_serialize_import',
),
'xml' => array(
'#title' => t('XML'),
'#module' => 'node_export',
'#file' => drupal_get_path('module', 'node_export') . '/formats/xml.inc',
'#description' => t(
'XML 1.0 representation which is good for machine-readability and human-readability.',
array(
'!xml' => 'http://en.wikipedia.org/wiki/XML',
)
),
'#mime' => 'application/xml',
'#export_callback' => 'node_export_xml_export',
'#import_callback' => 'node_export_xml_import',
),
'dsv' => array(
'#title' => t('DSV'),
'#module' => 'node_export',
'#file' => drupal_get_path('module', 'node_export') . '/formats/dsv.inc',
'#description' => t(
'Configurable Delimiter-separated values code. Export and import sites must be configured the same.',
array(
'!dsv' => 'http://en.wikipedia.org/wiki/Delimiter-separated_values'
)
),
'#settings_callback' => 'node_export_dsv_settings',
'#export_callback' => 'node_export_dsv_export',
'#import_callback' => 'node_export_dsv_import',
),
);
}