protected static function DrupalMandrill::getValidContentTypes in Mandrill 7
Return an array of valid content types.
@static
Return value
array Valid content types to attach to an email.
2 calls to DrupalMandrill::getValidContentTypes()
- DrupalMandrill::getAttachmentStruct in lib/
mandrill.inc - Return an array structure for a message attachment.
- DrupalMandrill::isValidContentType in lib/
mandrill.inc - Helper to determine attachment is valid.
File
- lib/
mandrill.inc, line 506 - Wrapper class around the Mandrill API.
Class
- DrupalMandrill
- Class DrupalMandrill.
Code
protected static function getValidContentTypes() {
$valid_types = array(
'image/',
'text/',
'application/pdf',
'application/x-zip',
);
drupal_alter('mandrill_valid_attachment_types', $valid_types);
return $valid_types;
}