diff --git a/workbench_moderation.migrate.inc b/workbench_moderation.migrate.inc old mode 100644 new mode 100755 index ca25f77..9f8ebee --- a/workbench_moderation.migrate.inc +++ b/workbench_moderation.migrate.inc @@ -52,6 +52,8 @@ class WorkbenchModerationMigrateDestinationHandler extends MigrateDestinationHan function workbench_moderation_migrate_api() { return array( 'api' => 2, - 'destination handlers' => array('WorkbenchModerationMigrateDestinationHandler'), + 'destination handlers' => array( + 'WorkbenchModerationMigrateDestinationHandler' + ), ); } diff --git a/workbench_moderation.module b/workbench_moderation.module old mode 100644 new mode 100755 index 5227c84..103c4f3 --- a/workbench_moderation.module +++ b/workbench_moderation.module @@ -1692,13 +1692,11 @@ function workbench_moderation_moderate($node, $state) { /** * Save a history record for a moderated node. * - * @param $node + * @param object $node * The node being acted upon. - * - * @param $new_state + * @param string $new_state * The new moderation state. - * - * @param $old_state + * @param string $old_state * The former moderation state. * * @return object @@ -1712,7 +1710,7 @@ function workbench_moderation_save_history($node, $new_state, $old_state) { ->condition('r.nid', $node->nid) ->condition('r.vid', $node->vid, '>') ->countQuery()->execute()->fetchField(); - // If the number of greater vids is 0, then this is the most current revision + // If the number of greater vids is 0, then this is the most current revision. $current = ($vid_count == 0); // Build a history record. @@ -1738,7 +1736,7 @@ function workbench_moderation_save_history($node, $new_state, $old_state) { // If this revision is to be published, the new moderation record should be // the only one flagged 'published' in both - // {workbench_moderation_node_history} AND {node_revision} + // {workbench_moderation_node_history} AND {node_revision}. if ($new_revision->published) { db_update('workbench_moderation_node_history') ->condition('nid', $node->nid)