/[drupal]/contributions/modules/simpletest_automator/simpletest_automator.export.inc
ViewVC logotype

Diff of /contributions/modules/simpletest_automator/simpletest_automator.export.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5, Thu Aug 21 02:47:57 2008 UTC revision 1.6, Thu Aug 21 03:45:17 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: simpletest_automator.export.inc,v 1.5 2008/08/21 02:47:57 cwgordon7 Exp $
3    
4  /**  /**
5   * Menu callback: export a SimpleTest automator instance to the code form.   * Menu callback: export a SimpleTest automator instance to the code form.
6   */   */
7  function simpletest_automator_export_test($simpletest_automator) {  function simpletest_automator_export_test($simpletest_automator, $preview = FALSE) {
8    // Send out the proper headers.    // Send out the proper headers.
9    drupal_set_header('Content-Type: application/x-httpd-php');    drupal_set_header('Content-Type: application/x-httpd-php');
10    drupal_set_header('Content-Disposition: attachment; filename="'. $simpletest_automator->file .'"');    drupal_set_header('Content-Disposition: attachment; filename="'. $simpletest_automator->file .'"');

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2