more testing
This commit is contained in:
@@ -1638,11 +1638,26 @@ function _booking_readinggroup_email_listing($node) {
|
|||||||
|
|
||||||
$member_query = db_query("SELECT * FROM {booking_person_view} WHERE $sessionid = :sid ", array(':sid' => $node->$sessionid))->fetchAllAssoc('nid');
|
$member_query = db_query("SELECT * FROM {booking_person_view} WHERE $sessionid = :sid ", array(':sid' => $node->$sessionid))->fetchAllAssoc('nid');
|
||||||
watchdog('booking_debug', "<pre>Other people in reading group @id \n@info</pre>",
|
watchdog('booking_debug', "<pre>Other people in reading group @id \n@info</pre>",
|
||||||
array('@id' => $node->$sessionid, '@info' => print_r($member_query, true)));
|
array('@id' => $node->$sessionid, '@info' => print_r($member_query, true)));
|
||||||
|
|
||||||
//theme('table', array('header' => $state_header, 'rows' => $state_rows));
|
foreach ($member_query as $member) {
|
||||||
|
$rows[] = array(
|
||||||
|
$member->booking_firstname,
|
||||||
|
$member->booking_lastname,
|
||||||
|
$member->booking_mobile,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(variable_get('booking_enable_html_mail', 0) == 1) {
|
||||||
|
$table = theme('table', array('header' => $header, 'rows' => $rows));
|
||||||
|
watchdog('booking_debug', "<pre>Reading group table\n@info</pre>", array('@info' => print_r($table, true)));
|
||||||
|
return drupal_render($table);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user