You are here

function _wysiwyg_tinymce_get_plugin_setting_description in Wysiwyg 6.2

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

Helper to get the URL for a plugin settings.

Parameters

$plugin_name: Internal name of the plugin.

$setting_name: Internal name of the setting.

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

File

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

Code

function _wysiwyg_tinymce_get_plugin_setting_description($plugin_name, $setting_name) {
  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' => _wysiwyg_tinymce_get_plugin_url($plugin_name) . ($is_v3 ? '' : "#{$setting_name}"),
  ));
}