|
@@ -477,6 +477,13 @@ if(!function_exists('sanitize_field_name')) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+if(!function_exists('sanitize_state_name')) {
|
|
|
+ function sanitize_state_name($name) {
|
|
|
+ $result = strtolower($name);
|
|
|
+ return ucwords(preg_replace("/_/i", " ", $result));
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
if(!function_exists('renderNoteTemplate')) {
|
|
|
function renderNoteTemplate($template, $topLevel)
|
|
|
{
|