public function SocialContent::saveGlobalSettings in Social Content 7.2
Save global settings.
Parameters
array $settings: The settings to save.
1 call to SocialContent::saveGlobalSettings()
- SocialContent::saveForm in ./
social_content.class.inc - Save the form values of a form that was request with the getForm method.
File
- ./
social_content.class.inc, line 219 - Social Content class.
Class
- SocialContent
- TODO: Table names should be a property for ease of change Separate this class into smaller classes.
Code
public function saveGlobalSettings($settings) {
$storage = variable_get($this
->getFormRootElementKey(), array());
$storage[$this
->getMachineName()] = $settings;
variable_set($this
->getFormRootElementKey(), $storage);
}