function ckeditor_link_revert

cis7 ckeditor_link.module ckeditor_link_revert()
cle7 ckeditor_link.module ckeditor_link_revert()
elmsmedia7 ckeditor_link.module ckeditor_link_revert()
icor7 ckeditor_link.module ckeditor_link_revert()
meedjum_blog7 ckeditor_link.module ckeditor_link_revert()
mooc7 ckeditor_link.module ckeditor_link_revert()
1 string reference to 'ckeditor_link_revert'
ckeditor_link_menu in sites/all/modules/ulmus/ckeditor_link/ckeditor_link.module
Implementation of hook_menu().

File

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

Code

function ckeditor_link_revert() {
  $output = NULL;

  $args = func_get_args();
  $path = trim(implode('/', $args), '/');
  if ($path !== '') {
    $langcode = LANGUAGE_NONE;
    $path = ckeditor_link_path_strip_language($path, $langcode);
    $path = drupal_get_normal_path($path, $langcode);
    $types = ckeditor_link_get_types();
    foreach ($types as $type) {
      $func = $type['module'] . '_ckeditor_link_' . $type['type'] . '_revert';
      if (function_exists($func)) {
        $result = $func($path, $langcode);
        if ($result !== NULL) {
          $output = ($result !== FALSE) ? $result . ' (' . ckeditor_link_path_prefix_language($path, $langcode) . ')' : FALSE;
          break;
        }
      }
    }
  }

  drupal_add_http_header('Content-Type', 'text/javascript; charset=utf-8');
  echo drupal_json_encode($output);
}
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.