Logo Search packages:      
Sourcecode: aegir-provision version File versions  Download package

provision_render_config ( template,

Generate the text for a config file using php

Definition at line 112 of file provision.inc.

Referenced by _provision_apache_create_config(), and _provision_drupal_create_settings_file().

  extract($variables, EXTR_SKIP);  // Extract the variables to a local namespace
  ob_start();                      // Start output buffering
  eval('?>'. $template);                 // Generate content
  $contents = ob_get_contents();   // Get the contents of the buffer
  ob_end_clean();                  // End buffering and discard
  return $contents;                // Return the contents

Generated by  Doxygen 1.6.0   Back to index