I created a module in order to define a few functions that I would like to use from a workflow rule. The workflow rule is triggered by an event and runs a php code snippet. The php snippet that it runs is simply a function call to the function that I defined in my module.
However each time my rule executes the code, I see an error in the httpd error_log - call to undefined function
. I ran the module through php lint, and I enabled it, flushed caches, and even restarted httpd for good measure. Still I get the error "PHP Fatal error: Call to undefined function
" in the log.
I'm new to modules and Drupal programming so I must be missing something, but I thought functions defined in drupal modules (modulename.module) are global?
BTW I followed the instructions here.
Edit1: I defined my functions in module.module (not .inc...)