Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#11 | 392688-D6.patch | 683 bytes | jhodgdon |
#5 | 392688-actions_save_type_param_doc.diff | 673 bytes | jeffschuler |
#2 | 392688-actions_save_type_param_doc.diff | 673 bytes | jeffschuler |
Comments
Comment #1
jeffschulerComment #2
jeffschulerPatch to add
$type
param to documentation for actions_save() -- using (paraphrased) description oftype
from actions_list().Comment #3
JuliaKM CreditAttribution: JuliaKM commentedThe new piece of documentation is correct. The action_save function appears to be documented correctly.
Comment #5
jeffschulerResubmitting same -- pretty sure a patch of comments didn't break install.
Comment #6
cburschkaCan't find any issue with the code-style or English of this comment, so this is probably ready.
Comment #8
jhodgdonThe 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).
Comment #9
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks!
Comment #10
jhodgdonStill needs port to D6.
Comment #11
jhodgdonHere's the same exact patch for D6, please commit...
Comment #12
andypost+1 to commit to d6
Comment #13
Gábor HojtsyThanks, committed to Drupal 6.