You are here

function features_dom_encode_map in Features 7.2

Same name and namespace in other branches
  1. 6 features.admin.inc \features_dom_encode_map()
  2. 7 features.admin.inc \features_dom_encode_map()

Returns encoding map for decode and encode options.

Return value

string[] Format: $[$char] = $char_encoded

4 calls to features_dom_encode_map()
features_dom_decode in ./features.admin.inc
Decodes a string that was encoded with features_dom_encode().
features_dom_decode_options in ./features.admin.inc
Decodes an options array that was encoded by features_dom_encode_options().
features_dom_encode in ./features.admin.inc
Encodes a string, replacing characters that cause problems for jQuery.
features_dom_encode_options in ./features.admin.inc
Make a Drupal options array safe for usage with jQuery DOM selectors.

File

./features.admin.inc, line 1823
Forms for Features admin screens.

Code

function features_dom_encode_map() {
  return array(
    ':' => '__' . ord(':') . '__',
    '/' => '__' . ord('/') . '__',
    ',' => '__' . ord(',') . '__',
    '.' => '__' . ord('.') . '__',
    '<' => '__' . ord('<') . '__',
    '>' => '__' . ord('>') . '__',
    '%' => '__' . ord('%') . '__',
    ')' => '__' . ord(')') . '__',
    '(' => '__' . ord('(') . '__',
  );
}