public function gettingStartedUrl() {
// Note: We use "*default*" as the default (rather than self::GETTING_STARTED_URL) so that future
// developers can change GETTING_STARTED_URL without needing to update {civicrm_setting}.
- $url = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'gettingStartedUrl', NULL, '*default*');
+ $url = Civi::settings()->get('gettingStartedUrl');
if ($url === '*default*') {
$url = self::GETTING_STARTED_URL;
}
'description' => 'Service providing CiviCRM community messages',
'help_text' => 'Use "*default*" for the system default or override with a custom URL',
),
+ 'gettingStartedUrl' => array(
+ 'group_name' => 'CiviCRM Preferences',
+ 'group' => 'core',
+ 'name' => 'gettingStartedUrl',
+ 'type' => 'String',
+ 'quick_form_type' => 'Element',
+ 'html_attributes' => array(
+ 'size' => 64,
+ 'maxlength' => 128,
+ ),
+ 'html_type' => 'Text',
+ 'default' => '*default*',
+ 'add' => '4.3',
+ 'title' => 'Getting Started URL',
+ 'is_domain' => 1,
+ 'is_contact' => 0,
+ 'description' => 'Service providing the Getting Started data',
+ 'help_text' => 'Use "*default*" for the system default or override with a custom URL',
+ ),
'resCacheCode' => array(
'group_name' => 'CiviCRM Preferences',
'group' => 'core',