Skip to content

Instantly share code, notes, and snippets.

@nicksantamaria
Created August 18, 2011 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicksantamaria/1153552 to your computer and use it in GitHub Desktop.
Save nicksantamaria/1153552 to your computer and use it in GitHub Desktop.
<?php
function artroom_cron_send_mail($items){
if(empty($items))
return;
$link = url("user/login", array("absolute" => true));
foreach($items as $item){
$item = array_merge($item, array("link" => $link));
$body = theme('art_email', $item);
dpm($body);
}
}
function artroom_cron_theme() {
return array(
'art_email' => array(
'variables' => array(
'link' => url("<front>", array("absolute" => true)),
'teacher' => "",
'total' => "",
),
'path' => drupal_get_path('module', 'artroom_cron') .'/templates',
'template' => 'art-email.tpl.php'
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment