}
/**
+ * Implementation of hook_requirements().
+ */
+function print_mail_requirements($phase) {
+ $requirements = array();
+ $t = get_t();
+ switch ($phase) {
+ case 'runtime':
+ if (module_exists('mimemail') && variable_get('mimemail_alter', 0) && (variable_get('mimemail_format', FILTER_FORMAT_DEFAULT) != '3')) {
+ $requirements['print_mail_mimemail'] = array(
+ 'title' => $t('Send by e-mail'),
+ 'value' => l($t('Mime Mail configuration'), 'admin/settings/mimemail'),
+ 'description' => $t("The current configuration of the Mime Mail module creates problems with the 'Send to Friend' function. Please set Mime Mail's input format to 'PHP code' to avoid them."),
+ 'severity' => REQUIREMENT_WARNING,
+ );
+ }
+ break;
+ }
+ return $requirements;
+}
+
+/**
* Implementation of hook_block().
*/
function print_mail_block($op = 'list', $delta = 0, $edit = array()) {