protected static function DrupalMandrill::isValidContentType in Mandrill 7
Helper to determine attachment is valid.
@static
Parameters
$ct:
Return value
bool
1 call to DrupalMandrill::isValidContentType()
- DrupalMandrill::getAttachmentStruct in lib/
mandrill.inc - Return an array structure for a message attachment.
File
- lib/
mandrill.inc, line 486 - Wrapper class around the Mandrill API.
Class
- DrupalMandrill
- Class DrupalMandrill.
Code
protected static function isValidContentType($ct) {
$valids = self::getValidContentTypes();
foreach ($valids as $vct) {
if (strpos($ct, $vct) !== FALSE) {
return TRUE;
}
}
return FALSE;
}