You are here

function patterns_export_php in Patterns 7

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

Starts the exporting process in php execution mode


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):


patterns_export/, line 15


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);