-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontent_export_import.module
More file actions
51 lines (47 loc) · 1.78 KB
/
content_export_import.module
File metadata and controls
51 lines (47 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @file
* Content Export Import ~ Backdrop Import Export Nodes module.
*/
/**
* Implements hook_menu().
*/
function content_export_import_menu() {
$items = array();
// Content imports and exports.
$items['admin/config/system/content'] = array(
'title' => 'Content Export Import',
'description' => 'Import or export content from a Backdrop site.',
'page callback' => 'backdrop_get_form',
'page arguments' => array('content_export_import_import_settings'),
'access arguments' => array('administer site configuration'),
'file' => 'content_export_import_import.admin.inc',
);
$items['admin/config/system/content/import'] = array(
'title' => 'Import Content',
'description' => 'Import content from a Backdrop site.',
'page callback' => 'backdrop_get_form',
'page arguments' => array('content_export_import_import_settings'),
'access arguments' => array('administer site configuration'),
'file' => 'content_export_import_import.admin.inc',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 20,
);
$items['admin/config/system/content/export'] = array(
'title' => 'Export Content',
'description' => 'Export content from a Backdrop site.',
'page callback' => 'backdrop_get_form',
'page arguments' => array('content_export_import_export_settings'),
'access arguments' => array('administer site configuration'),
'file' => 'content_export_import_export.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 40,
);
$items['admin/config/system/content/export-content-download'] = array(
'page callback' => 'content_download_full_export',
'access arguments' => array('administer site configuration'),
'file' => 'content_export_import_export.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}