You are here

public function InstapageCmsPluginDrupal7Connector::getSitename in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/connectors/InstapageCmsPluginDrupal7Connector.php \InstapageCmsPluginDrupal7Connector::getSitename()

Gets the sitename from CMS config.

Return value

string Sitename.

File

core/connectors/InstapageCmsPluginDrupal7Connector.php, line 762

Class

InstapageCmsPluginDrupal7Connector
Class that utilizes native Drupal 7 functions to perform actions like remote requests and DB operations.

Code

public function getSitename($sanitized = false) {
  $sitename = variable_get('site_name');
  if ($sanitized) {
    return mb_strtolower(str_replace(' ', '-', $sitename), 'UTF-8');
  }
  return $sitename;
}