You are here

function patterns_export_php in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_export/core.inc \patterns_export_php()

Starts the exporting process in php execution mode

Parameters

string $filename The name or path of the exported file :

array $tagmodules The index of modules/tags/exports_functions :

array $info The info section of the export:

string $to Optional. A valid export destionation (e.g. zip,file,database).: Defaults, 'db'.

string $format A valid patterns format (e.g. yaml,xml,php):

File

patterns_export/core.inc, line 15

Code

function patterns_export_php($filename, $tagmodules, $info, $to, $format) {
  list($sections, $modules) = patterns_export_core_php($tagmodules);
  return patterns_export_finalize_export($to, $sections, $info, $modules, $format, $filename);
}