The definition of actions_save is:

function actions_save($function, $type, $params, $desc, $aid = NULL) {

Yet the documentation says:

Parameters

$function The name of the function to be called when this action is performed.

$params An associative array with parameter names as keys and parameter values as values.

$desc A user-supplied description of this particular action, e.g., 'Send e-mail to Jim'.

$aid The ID of this action. If omitted, a new action is created.

http://api.drupal.org/api/function/actions_synchronize/6

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jeffschuler’s picture

Assigned: Unassigned » jeffschuler
jeffschuler’s picture

Status: Needs work » Needs review
FileSize
673 bytes

Patch to add $type param to documentation for actions_save() -- using (paraphrased) description of type from actions_list().

JuliaKM’s picture

Assigned: jeffschuler » Unassigned
Status: Active » Reviewed & tested by the community

The new piece of documentation is correct. The action_save function appears to be documented correctly.

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

jeffschuler’s picture

Resubmitting same -- pretty sure a patch of comments didn't break install.

cburschka’s picture

Status: Needs review » Reviewed & tested by the community

Can't find any issue with the code-style or English of this comment, so this is probably ready.

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

jhodgdon’s picture

Status: Needs work » Reviewed & tested by the community

The patch applies fine for me, and looks good to me. There must have been a glitch in the testing system. I think it should be applied.

Note that the link to api.drupal.org is to the wrong function in the original issue. The function patched is http://api.drupal.org/api/function/actions_save/6

The patch above is for D7. After it is applied, it should be ported to D6 (slightly different context, so the above patch does not apply in D6).

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks!

jhodgdon’s picture

Version: 7.x-dev » 6.x-dev
Status: Fixed » Patch (to be ported)

Still needs port to D6.

jhodgdon’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
FileSize
683 bytes

Here's the same exact patch for D6, please commit...

andypost’s picture

+1 to commit to d6

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed to Drupal 6.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.