summaryrefslogtreecommitdiffstats
path: root/print_mail
diff options
context:
space:
mode:
authorJoao Ventura2012-08-30 15:48:23 +0000
committerJoao Ventura2012-08-30 15:48:23 +0000
commit70b36b7093f55faaa84346279bf4fce61465b7d7 (patch)
treedb9a74c23d89922e1a1181610a289e735fb25d34 /print_mail
parent5eaab713b3f0dea5a427f2f961e925a4d0d6b998 (diff)
Fix the mail form default theming.
Diffstat (limited to 'print_mail')
-rw-r--r--print_mail/print_mail.inc4
-rw-r--r--print_mail/print_mail.module2
2 files changed, 4 insertions, 2 deletions
diff --git a/print_mail/print_mail.inc b/print_mail/print_mail.inc
index 7914a5d..412d8d6 100644
--- a/print_mail/print_mail.inc
+++ b/print_mail/print_mail.inc
@@ -195,7 +195,9 @@ function print_mail_form_for_path($form, &$form_state, $path, $user = NULL) {
* @ingroup themeable
* @ingroup print_themeable
*/
-function theme_print_mail_form($form) {
+function theme_print_mail_form($variables) {
+ $form = $variables['form'];
+
drupal_add_css(drupal_get_path('module', 'print_mail') . '/css/print_mail.theme.css');
$content = '';
foreach (element_children($form) as $key) {
diff --git a/print_mail/print_mail.module b/print_mail/print_mail.module
index 2ff0a84..8e0f45a 100644
--- a/print_mail/print_mail.module
+++ b/print_mail/print_mail.module
@@ -51,7 +51,7 @@ function print_mail_permission() {
function print_mail_theme() {
return array(
'print_mail_form' => array(
- 'variables' => array('form' => NULL),
+ 'render element' => 'form',
'file' => 'print_mail.inc',
),
);