diff --git a/workflow.module b/workflow.module index 5f68b04..6dacfa4 100644 --- a/workflow.module +++ b/workflow.module @@ -1251,10 +1251,10 @@ function workflow_user($op, &$edit, &$account, $category = NULL) { } /* - * Returns the authors of the a node to be used for author condition. + * Returns the authors of a node to be used for its author condition. * * @param $node - * A node object as returned from node_load. + * A node object as returned from node_load(). * * @return * An array of user UIDs. @@ -1263,5 +1263,5 @@ function workflow_get_authors($node) { $authors = !empty($node->uid) ? array($node->uid => $node->uid) : array(); drupal_alter('workflow_authors', $authors, $node); - return $authors; + return $authors; } diff --git a/workflow_access/workflow_access.install b/workflow_access/workflow_access.install index a8cc6dd..66ac7f0 100644 --- a/workflow_access/workflow_access.install +++ b/workflow_access/workflow_access.install @@ -37,7 +37,7 @@ function workflow_access_schema() { * Tell people they need to rebuild node access. */ function workflow_access_update_6101() { - $res = array(); - $rest[] = update_sql('DELETE from node_access where realm = "workflow_access_owner" and gid = 0'); - return $res; + $ret = array(); + $ret[] = update_sql('DELETE from node_access where realm = "workflow_access_owner" and gid = 0'); + return $ret; } diff --git a/workflow_access/workflow_access.module b/workflow_access/workflow_access.module index 6bfb943..e6d60ff 100644 --- a/workflow_access/workflow_access.module +++ b/workflow_access/workflow_access.module @@ -39,7 +39,7 @@ function workflow_access_node_access_records($node) { 'gid' => $uid, 'grant_view' => $grant->grant_view, 'grant_update' => $grant->grant_update, - 'grant_delete' => $grant->grant_delete + 'grant_delete' => $grant->grant_delete, ); } } @@ -49,7 +49,7 @@ function workflow_access_node_access_records($node) { 'gid' => $grant->rid, 'grant_view' => $grant->grant_view, 'grant_update' => $grant->grant_update, - 'grant_delete' => $grant->grant_delete + 'grant_delete' => $grant->grant_delete, ); } }