/[drupal]/contributions/modules/autosave/autosave.module
ViewVC logotype

Diff of /contributions/modules/autosave/autosave.module

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

revision 1.7, Sat Oct 31 20:59:08 2009 UTC revision 1.8, Wed Nov 4 06:23:09 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: autosave.module,v 1.6 2009/10/27 07:39:05 ptalindstrom Exp $  // $Id: autosave.module,v 1.7 2009/10/31 20:59:08 ptalindstrom Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 86  function autosave_form_alter(&$form, &$f Line 86  function autosave_form_alter(&$form, &$f
86        drupal_add_js(AUTOSAVE_PATH .'/jquery.field.js');        drupal_add_js(AUTOSAVE_PATH .'/jquery.field.js');
87        drupal_add_css(AUTOSAVE_PATH .'/autosave.css');        drupal_add_css(AUTOSAVE_PATH .'/autosave.css');
88    
89          // if WYSIWYG module is enabled; lets let JS know this
90          if (module_exists('wysiwyg')) $settings['autosave']['wysiwyg'] = 1;
91          else $settings['autosave']['wysiwyg'] = 0;
92    
93        $settings['autosave']['url'] = url('autosave/handler');        $settings['autosave']['url'] = url('autosave/handler');
94        $settings['autosave']['period'] = variable_get('autosave_period', 10);        $settings['autosave']['period'] = variable_get('autosave_period', 10);
95        $settings['autosave']['q'] = $path;        $settings['autosave']['q'] = $path;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.2