save_inline_permissions

Description

Saves permissions from an inline permissions form.

Syntax

void save_inline_permissions (array $permissions)



Parameter $permissions

Expected type: Array
Description: An array of permissions to save.


Notes

  • Requires the 'manage_permissions' permission (obviously)
  • Calls loadIllegalPermissions to determine which permissions you can't set
  • Saves inline permissions
  • Called from various functions when saving settings
  • Deletes the old permissions and re-inserts the new ones
Advertisement: