db_set_global_setting()
Parameters
- Token(character varying)
- SettingName(character varying)
- SettingValue(character varying)
- Permission(integer)
- Visibility(integer)
- Type(integer)
- School(integer)
Returns
Description
- See Settings for a description of settings and how they work. In
particular an explaination of permissions, visibility, and overriding. This is intended to be used
internally within the system since Users should not have the ability to affect other schools and this
function can set settings that apply to all schools.
Errors
- 1 - Only an admin can alter system settings.
- 2 - Invalid Session.
- 3 - Setting Name cannot be an empty field.
- 4 - Setting Value cannot be an empty field.
- 5 - New permission is not valid.
- 6 - New visibility is not valid.
- 7 - Cannot set visibility requirements higher than permission.
Related functions