function messaging_htmlmail_parse_attachment in Messaging 7
File
- messaging_htmlmail/
messaging_htmlmail.inc, line 572 - Drupal Messaging Framework - Send_Method class file
Code
function messaging_htmlmail_parse_attachment($part) {
$m = array();
if (preg_match('/.*filename="?([^";])"?.*/', $part['headers']['Content-Disposition'], $m)) {
$name = $m[1];
}
elseif (preg_match('/.*name="?([^";])"?.*/', $part['headers']['Content-Type'], $m)) {
$name = $m[1];
}
return array(
'filename' => $name,
'filemime' => $part['content-type'],
'content' => messaging_htmlmail_parse_content($part),
);
}