NodesController::admin_movedown PHP Method

admin_movedown() public method

Move a node down when scoped to Content type
public admin_movedown ( integer $id, integer $step = 1 )
$id integer Node id
$step integer Step
    public function admin_movedown($id, $step = 1)
    {
        if ($this->Node->moveDown($id, $step)) {
            $this->Session->setFlash(__d('croogo', 'Moved down successfully'), 'flash', array('class' => 'success'));
        } else {
            $this->Session->setFlash(__d('croogo', 'Could not move down'), 'flash', array('class' => 'error'));
        }
        return $this->redirect($this->referer());
    }