function demo_dump in Demonstration site (Sandbox / Snapshot) 6
Same name and namespace in other branches
- 5 demo.admin.inc \demo_dump()
- 7 demo.module \demo_dump()
Create a new snapshot.
Parameters
$options: A structured array of snapshot options:
- filename: The base output filename, without extension.
- default: Whether to set this dump as new default snapshot.
- description: A description for the snapshot. If a snapshot with the same name already exists and this is left blank, the new snapshot will reuse the existing description.
- tables: An array of tables to dump, keyed by table name (including table
prefix, if any). The value is an array of dump options:
- schema: Whether to dump the table schema.
- data: Whether to dump the table data.
File
- ./
demo.module, line 99 - Demonstration site API Drupal integration functions.
Code
function demo_dump($options) {
module_load_include('inc', 'demo', 'demo.admin');
return _demo_dump($options);
}