updatePrivate (function)

Return to Knowledgebase

Purpose

Toggles the private/public setting of a page

Location

users/helpers/permissions.php

Parameters

# Parameter Data Type Required Description
1 $id Yes undocumented
2 $private Yes undocumented

Example

updatePrivate($id, $private)

Further Documentation:

This should only be done through the User Interface.