Need a way to send different layout if I send an epostcard or if I forward a page, thinking the better way is to add a variable in the template..

Comments

d.sibaud’s picture

Can easily achieved with adding it in the vars array passed to the tpl:

*** forward.module.orig	2009-12-23 10:51:55.000000000 +0100
--- forward.module	2009-12-23 10:49:06.000000000 +0100
***************
*** 739,744 ****
--- 739,745 ----
      'yname' => check_plain($form_state['values']['yname']),
      'yemail' => check_plain($form_state['values']['yemail']),
      'forward_message' => t(variable_get('forward_'. $emailtype .'_message', '!name thought you would like to see the !site web site.'), array('!name' => l($form_state['values']['yname'], 'mailto:'. $form_state['values']['yemail'], array('absolute' => TRUE)), '!site' => variable_get('site_name', 'drupal'))),
+     'emailtype' => $emailtype,
      'message' => $message,
      'base_url' => $base_url,
      'content' => $content,
d.sibaud’s picture

Status: Active » Closed (fixed)

What an idiot, there is already a variable $type!!!