Skip to content

Commit

Permalink
Add parameter to conduit_api_repeat() which is needed by conduit_sche…
Browse files Browse the repository at this point in the history
…duler.
  • Loading branch information
boombatower committed Feb 3, 2012
1 parent 4c3bdd2 commit 24ed51e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions includes/api.inc
Expand Up @@ -121,11 +121,14 @@ function conduit_api_result($item, $status, $result, $log, $duration) {
*
* @param $nid
* Job node ID to repeat.
* @param $force
* (Optional) TRUE to force the job to be repeated without checking any of the
* conditions as defined by conduit_node_repeat_access(). Defaults to FALSE.
* @return
* TRUE if the job node was found and repeated, otherwise FALSE.
*/
function conduit_api_repeat($nid) {
if (($node = node_load($nid)) && conduit_node_repeat_access($node)) {
function conduit_api_repeat($nid, $force = FALSE) {
if (($node = node_load($nid)) && ($force || conduit_node_repeat_access($node))) {
$node->revision = TRUE;
node_save($node);
return TRUE;
Expand Down

0 comments on commit 24ed51e

Please sign in to comment.