function ckeditor_link_form_post_render

cis7 ckeditor_link.module ckeditor_link_form_post_render($content, $element)
cle7 ckeditor_link.module ckeditor_link_form_post_render($content, $element)
elmsmedia7 ckeditor_link.module ckeditor_link_form_post_render($content, $element)
icor7 ckeditor_link.module ckeditor_link_form_post_render($content, $element)
meedjum_blog7 ckeditor_link.module ckeditor_link_form_post_render($content, $element)
mooc7 ckeditor_link.module ckeditor_link_form_post_render($content, $element)
1 string reference to 'ckeditor_link_form_post_render'
ckeditor_link_element_info_alter in sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module
Implementation of hook_element_info_alter().

File

sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module, line 176
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function ckeditor_link_form_post_render($content, $element) {
  static $added;
  if (!isset($added) && _ckeditor_link_has_text_format() && ($js = drupal_add_js()) && isset($js['settings']['data'])) {
    $settings = call_user_func_array('array_merge_recursive', $js['settings']['data']);
    if (isset($settings['ckeditor']) || isset($settings['wysiwyg']['configs']['ckeditor'])) {
      $added = TRUE;
      drupal_add_css(drupal_get_path('module', 'ckeditor_link') . '/ckeditor_link.css');
      drupal_add_js('misc/autocomplete.js');
      drupal_add_js(array('ckeditor_link' => array(
        'module_path' => base_path() . drupal_get_path('module', 'ckeditor_link'),
        'autocomplete_path' => url('ckeditor_link/autocomplete'),
        'revert_path' => url('ckeditor_link/revert'),
        'msg_invalid_path' => t('Link must be a valid internal path.'),
        'type_name' => ckeditor_link_get_link_type_name(),
        'type_selected' => (bool) variable_get('ckeditor_link_type_selected', 1),
      )), 'setting');
    }
  }
  return $content;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.