Removed obsolete $ in source files

This commit is contained in:
Manuel Cillero 2017-08-29 14:13:02 +02:00
parent a39c010e06
commit e5f2b64d98
146 changed files with 836 additions and 1081 deletions

View file

@ -1,6 +1,4 @@
<?php
// $Id: autosave.module,v 1.9 2009/11/06 00:41:16 ptalindstrom Exp $
/**
* @file
* Does background saves of node being edited.
@ -106,7 +104,7 @@ function autosave_form_node_type_form_alter(&$form, $form_state) {
function autosave_form_alter(&$form, &$form_state, $form_id) {
global $user;
$path = $_GET['q'];
if (stristr($form_id, '_node_form') && arg(0) != 'admin') {
// check if this content_type has the autosave function enabled and make sure it's a node edit or add form
@ -118,15 +116,15 @@ function autosave_form_alter(&$form, &$form_state, $form_id) {
// if WYSIWYG module is enabled; lets let JS know this
if (module_exists('wysiwyg')) $settings['autosave']['wysiwyg'] = 1;
else $settings['autosave']['wysiwyg'] = 0;
// add security token
$token = drupal_get_token($form_id);
$settings['autosave']['url'] = url('autosave/handler/' . $token);
$settings['autosave']['period'] = variable_get('autosave_period', 10);
$settings['autosave']['autosave_path'] = $path;
$settings['autosave']['hidden'] = variable_get('autosave_hidden', 0);
// If an autosaved version of the form exists, make it available via javascript.
if ($autosaved_form = autosave_get_autosaved_form($form_id, $path, $user->uid)) {
//$autosaved_form_id = $form['type']['#value'] ? $form['type']['#value'] .'_node_form' : 'node_form';