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

pobster’s picture

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

TSNetwork’s picture

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

pobster’s picture

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

pobster’s picture

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

Status: Fixed » Closed (fixed)

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