Posted by tmetzger on May 20, 2009 at 3:47pm
Hi all,
Is it possible to create a workflow in an installation profile? I have code that works perfectly in a normal context, but fails to function when I run it in my installation profile.
When I dig down into the code, it appears that drupal_write_record inside the workflow_create() function fails to write the record, after which of course nothing else can work.
I've tried to include various .inc files like database.inc and common.inc to no avail. Other database functions like db_query() seem to work just fine.
Any clues appreciated!
Tom

Comments
Perhaps a better question...
Perhaps a better question is, what do I need to do to get drupal_write_record into scope??