You are here

public function SocialContent::loadGlobalSettings in Social Content 7.2

Load global settings.

Return value

array The global settings loaded from storage

1 call to SocialContent::loadGlobalSettings()
SocialContent::__construct in ./social_content.class.inc
Class constructor to instantiate a new object.

File

./social_content.class.inc, line 53
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 loadGlobalSettings() {
  $settings = variable_get($this
    ->getFormRootElementKey(), array());
  $machine_name = $this
    ->getMachineName();
  if (isset($settings[$machine_name])) {
    $settings = $settings[$machine_name];
  }
  $this->settings['global'] = $settings;
  return $settings;
}