Creating a workflow in an installation profile

Events happening in the community are now at Drupal community events on www.drupal.org.
tmetzger's picture

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...

tmetzger's picture

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

Workflow

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: