You are here

function _wysiwyg_tinymce_get_setting_description in Wysiwyg 6.2

Same name and namespace in other branches
  1. 7.2 editors/tinymce.inc \_wysiwyg_tinymce_get_setting_description()

Helper to get the URL for a general setting.

Parameters

$setting_name: Internal name of the setting.

1 call to _wysiwyg_tinymce_get_setting_description()
wysiwyg_tinymce_settings_form in editors/tinymce.inc
Enhances the editor profile settings form for TinyMCE.

File

editors/tinymce.inc, line 1462
Editor integration functions for TinyMCE.

Code

function _wysiwyg_tinymce_get_setting_description($setting_name, $section_name = NULL) {
  static $is_v3 = NULL;
  if (!isset($is_v3)) {
    $is_v3 = _wysiwyg_tinymce_is_v3();
  }
  return t('Uses the <a href="@url">@setting</a> setting internally.', array(
    '@setting' => $setting_name,
    '@url' => $is_v3 ? url("https://www.tinymce.com/docs-3x/reference/configuration/Configuration3x@{$setting_name}/") : url("https://www.tinymce.com/docs/configure/{$section_name}/#{$setting_name}"),
  ));
}