projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #13993 from eileenmcnaughton/recur_fixes
[civicrm-core.git]
/
CRM
/
Utils
/
Type.php
diff --git
a/CRM/Utils/Type.php
b/CRM/Utils/Type.php
index 5baf250990239b664268f805abbafac7b7ed013e..e2786712a420786e263ea190cd925d0c160516db 100644
(file)
--- a/
CRM/Utils/Type.php
+++ b/
CRM/Utils/Type.php
@@
-434,6
+434,7
@@
class CRM_Utils_Type {
'ExtensionKey',
'Json',
'Alphanumeric',
+ 'Color',
];
if (!in_array($type, $possibleTypes)) {
if ($isThrowException) {
@@
-554,6
+555,12
@@
class CRM_Utils_Type {
return $data;
}
break;
+
+ case 'Color':
+ if (CRM_Utils_Rule::color($data)) {
+ return $data;
+ }
+ break;
}
if ($abort) {