You are here

function arrange_fields_unconvert_unsafe_chars in Arrange Fields 6

Same name and namespace in other branches
  1. 7 arrange_fields.module \arrange_fields_unconvert_unsafe_chars()

Mirror of the javascript function in arrange_fields_dialog.js, this will convert our custom codes for unsafe characters back to what they started off as.

Parameters

string $str:

Return value

string

1 call to arrange_fields_unconvert_unsafe_chars()
arrange_fields_form_alter in ./arrange_fields.module
Implementation of hook_form_alter().

File

./arrange_fields.module, line 1092

Code

function arrange_fields_unconvert_unsafe_chars($str) {
  $str = str_replace("_~!co%~_", ",", $str);
  $str = str_replace("_~!sc%~_", ";", $str);
  $str = str_replace("_~!sq%~_", "'", $str);
  $str = str_replace("_~!dq%~_", '"', $str);
  $str = str_replace("_~!nl%~_", "\n", $str);
  return $str;
}