Totally not even remotely similar to the API documentation, see http://api.drupal.org/api/function/hook_action_info (i filed a core bug at #320659: actions.inc: Undefined index: configurable on line 267 and was referred there)...
*strike*here's output like it's supposed too be*/strike*
here's a line of code to see what it should be like.. add this after line 266 in includes/actions.inc:
// Go through all the actions provided by modules.
foreach ($actions_in_code as $callback => $array) {
// Ignore configurable actions since their instances get put in
// when the user adds the action.
+ drupal_set_message("$callback => <pre>".print_r($array, TRUE).'</pre>');
if (!($array['configurable'])) {
// If we already have an action ID for this action, no need to assign aid.
if (array_key_exists($callback, $actions_in_db)) {
then have a look at the actions page. I couldn't figure out what is meant in the current misimplementation so i can't provide a patch (sorry).
Comments
Comment #1
liam mcdermott commentedAh, this stuff was written for Workflow-ng. That's why it's utterly different to the API docmentation. It will need a complete rewrite, pants.
Unfortunately two API functions from Workflow-ng and Actions are the same. As Workflow-ng isn't being ported to D6 we can safely change this to work correctly. I knew there would be problems like this, that's why the module is in an alpha state.
Am not sure when I'll have time to write a patch. I'd be happy to review and commit any patches though. :)
Comment #2
eMPee584 commentedoic that'd explain the mess, and why it's the same situation with the backup_migrate module.. well regarding a patch, as already said i really could not quite figure out the actual intended meaning but of course those two api logics just don't match very well. You might consider disabling the hook for the time being by renaming the _function, or so..
Comment #3
liam mcdermott commentedMarking as duplicate of #312570: Integration with Rules module