The function "workflow_access_form_alter" doesn't follow the Drupal 6 API. I have fixed it and a minor error using a deprecated function (db_num_rows).
I attach my patch file. Please, review my code.
| Comment | File | Size | Author |
|---|---|---|---|
| workflow_access.patch | 1.07 KB | Lk2 |
Comments
Comment #1
jvandyk commentedI removed db_num_rows() from workflow_access.
Comment #2
avpadernoIn this case, the function needs to know if there are any results from the SQL query.
I would change the code in:
Using then the new way to name the
hook_form_alter()implementation, the function would be:which would be called only for the form 'workflow_edit_form', and therefore there isn't the need to check for the
$form_idwhich not even passed to the function.Comment #3
jvandyk commentedGreat suggestion. I also updated the #submit syntax to D6 syntax. Please do consider submitting proper patches.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.