Download & Extend

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

Project:Logo Tool
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

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

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

#3

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

#4

Version:6.x-1.x-dev» 6.x-2.0-beta1
Status:postponed» fixed

Done. ...Finally... Wish I had more spare time and a more understanding girlfriend...

Pobster

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here