/** * clears the unpublishdate flag. * @param integer The node id * * @return boolean */ public function clearUnpublishDate($nodeid) { if (!intval($nodeid)) { throw new Exception('invalid_node_id'); } if (!vB::getUserContext()->getChannelPermission('forumpermissions2', 'canpublish', $nodeid)) { throw new Exception('no_publish_permissions'); } return $this->library->clearUnpublishDate($nodeid); }