I get this when I enable the module on a 6.x-dev version of Drupal which has notices turned on:
notice: Undefined variable: node_type in /Users/webchick/Sites/drubb/sites/all/modules/smileys/smileys.module on line 76.
I get this when I enable the module on a 6.x-dev version of Drupal which has notices turned on:
notice: Undefined variable: node_type in /Users/webchick/Sites/drubb/sites/all/modules/smileys/smileys.module on line 76.
Comments
Comment #1
Gurpartap Singh commentedhttp://cvs.drupal.org/viewvc.py/drupal/contributions/modules/smileys/smi...
Comment #2
webchickRe-opening, since I don't think this is quite the right fix.
There's no reason smileys code should be firing on the modules form. That entire form_alter should be placed in a conditional check to see if the form it's currently on is a node/comment form, IMO.
Comment #3
Gurpartap Singh commentedhttp://cvs.drupal.org/viewvc.py/drupal/contributions/modules/smileys/smi...