]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialProfileExtensions/lib/profiletools.php
Use exceptions for Notice::getByUri
[quix0rs-gnu-social.git] / plugins / GNUsocialProfileExtensions / lib / profiletools.php
index 57f403929e1890bf12b194407cc4ec67a1cad7ef..fa3cfa96563f16abcfcc9bc58a5b44069499d47a 100644 (file)
@@ -37,4 +37,11 @@ function gnusocial_profile_merge(&$profile)
     }
 }
     
-
+function gnusocial_field_systemname_validate($systemname)
+{
+    $fields = GNUsocialProfileExtensionField::allFields();
+    foreach ($fields as $field)
+        if ($field->systemname == $systemname)
+            return false;
+    return ctype_alphanum($systemname);
+}
\ No newline at end of file