[drupal] Index of /contributions/sandbox/alex_b/port
PORT MODULE
A framework for importing and exporting structure (and content?) from a
Drupal application.
REQUIREMENTS
Drupal 5.x
USAGE
Install on source site and on target site (site you would like to export from
and site you would like to import to).
On source site, go to admin/build/export and export the elements of your
choice. Grab export data, go to admin/build/import on target site, paste export
data and hit submit.
Alternatively, choose 'Output as PHP functions' to export callable PHP function
definitions that you can copy and paste into your code. This can be useful
e. g. for building installer profiles.
SUPPORTED PORTS
- Menus
- Enabled modules
- Drupal variables (settings)
- User roles and permissions
- Content type definitions
- Image cache settings
- Node profile settings
- Spaces definitions
WRITE YOUR OWN PORTS = IMPORT/EXPORT FUNCTIONS
A. Define an export / import function pair where import() accepts the output of
export().
B. Expose them to port module through hook_ports(). See contrib/ or core/
directory in port module for examples.
DISCLAIMER
This is a proof of concept for a symmetrical import/export API.
Known problems
- Menu import/export doesn't update existing menus.
CREDITS
crud.inc is copied from the install_profile_api module.