Move to using CRM_Utils_Rule and CRM_Utils_Type::validate as per Sean's comments
[civicrm-core.git] / CRM / Utils / Type.php
index 43b920f8be4bf595e42e4014d01f3e774074d87f..fbe1c934e7922fbc7091c76422031754e3d2974d 100644 (file)
@@ -466,6 +466,12 @@ class CRM_Utils_Type {
         }
         break;
 
+      case 'ExtensionKey':
+        if (CRM_Utils_Rule::checkExtesnionKeyIsValid($data)) {
+          return $data;
+        }
+        break;
+
       default:
         CRM_Core_Error::fatal("Cannot recognize $type for $data");
         break;