function patterns_export_to_db in Patterns 7
Same name and namespace in other branches
- 7.2 patterns_export/finalize.inc \patterns_export_to_db()
Exports a pattern by importing it into the database
Parameters
array $sections The sections of the pattern:
array $info The info section of the pattern:
array $modules The modules section of the pattern:
string $format The pattern format:
string $filename (optional) The final name of file :
1 call to patterns_export_to_db()
- patterns_export_finalize_export in patterns_export/
finalize.inc - Initializes the appropriate action to export a collection of patterns
File
- patterns_export/
finalize.inc, line 100
Code
function patterns_export_to_db($sections = array(), $info = array(), $modules = array(), $format, $filename = NULL) {
$pattern = _patterns_export_merge_exported_patterns($sections, $info, $modules);
//drupal_set_message(print_r($pattern,true));
return patterns_io_save_pattern($pattern, $filename, $format);
}