Parse error: syntax error, unexpected '=', expecting ')'

SektorZ - March 30, 2009 - 01:43
Project:Logo Tool
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:postponed
Description

I'm getting this error when enabling the module:

Parse error: syntax error, unexpected '=', expecting ')' in /home/www/website.net/drupal/modules/logotool/logotool.module on line 215

What could be the problem? I checked the code, it should be working that way.

#1

pobster - March 30, 2009 - 19:52

Just remove that entire function;

/**
* Presents an upload form
*/
function logotool_upload(&$form_state = NULL) {
  $form['logotool_upload'] = array(
    '#title' => t('Upload logo'),
    '#type' => 'file',
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    '#description' => t("If you don't have direct file access to the server, use this form to upload your logo.")
  );
  $form['submit'] = array('#type' => 'submit', '#value' => 'Upload logo');
  $form['#attributes']['enctype'] = 'multipart/form-data';
  return $form;
} // logotool_upload

It's not used anyway. It's just there for future usage but my time is precious lately so I've not been able to progress any further with this module. I'll get round to it some time, after all - even my work use Logotool on a couple of sites!

Pobster

#2

SektorZ - March 31, 2009 - 05:40

Thank you. I was planning on trying with removing it, I guess I should have tried :)

#3

pobster - April 1, 2009 - 08:36
Status:active» postponed

Setting to postponed as I'm going to tidy this module up for porting to 7.x (which means all the functionality I wanted to put in there before will be finished off for a final release). Anyways... Not yet...

Pobster

 
 

Drupal is a registered trademark of Dries Buytaert.