projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move to using CRM_Utils_Rule and CRM_Utils_Type::validate as per Sean's comments
[civicrm-core.git]
/
CRM
/
Utils
/
Type.php
diff --git
a/CRM/Utils/Type.php
b/CRM/Utils/Type.php
index 43b920f8be4bf595e42e4014d01f3e774074d87f..fbe1c934e7922fbc7091c76422031754e3d2974d 100644
(file)
--- a/
CRM/Utils/Type.php
+++ b/
CRM/Utils/Type.php
@@
-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;