/[drupal]/contributions/modules/path_redirect/path_redirect.admin.inc
ViewVC logotype

Diff of /contributions/modules/path_redirect/path_redirect.admin.inc

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

revision 1.1.2.50, Wed Nov 4 06:15:53 2009 UTC revision 1.1.2.51, Wed Nov 4 06:29:09 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: path_redirect.admin.inc,v 1.1.2.49 2009/11/04 06:14:00 davereid Exp $  // $Id: path_redirect.admin.inc,v 1.1.2.50 2009/11/04 06:15:53 davereid Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 435  function path_redirect_export_form_submi Line 435  function path_redirect_export_form_submi
435    $type = $form_state['values']['type'];    $type = $form_state['values']['type'];
436    $function = 'path_redirect_export_'. $type;    $function = 'path_redirect_export_'. $type;
437    
438    $filename = variable_get('site_name', 'Drupal') .' redirects '. format_date(REQUEST_TIME, 'custom', 'Y m d');    $filename = variable_get('site_name', 'Drupal') .' redirects '. format_date(time(), 'custom', 'Y m d');
439    $filename = preg_replace(array('/^\W+|\W+$/', '/\W+/'), array('', '-'), drupal_strtolower($filename));    $filename = preg_replace(array('/^\W+|\W+$/', '/\W+/'), array('', '-'), drupal_strtolower($filename));
440    $filename .= '.'. $type;    $filename .= '.'. $type;
441    drupal_set_header('Content-Disposition: attachment; filename='. $filename);    drupal_set_header('Content-Disposition: attachment; filename='. $filename);

Legend:
Removed from v.1.1.2.50  
changed lines
  Added in v.1.1.2.51

  ViewVC Help
Powered by ViewVC 1.1.2