You are here

private static function mimemail_compress::replace_id_attributes in Mime Mail 7

Replace callback function that matches ID attributes.

File

modules/mimemail_compress/mimemail_compress.inc, line 245
Converts CSS styles into inline style attributes.

Class

mimemail_compress
Compresses HTML and CSS into combined message.

Code

private static function replace_id_attributes($m) {
  return (strlen($m[1]) ? $m[1] : '*') . '[@id="' . $m[2] . '"]';
}