function makemeeting_logpage in Make Meeting Scheduler 6
Same name and namespace in other branches
- 7 makemeeting.pages.inc \makemeeting_logpage()
Showing voters logpage.
Parameters
mixed $admin_url:
1 string reference to 'makemeeting_logpage'
- makemeeting_menu in ./
makemeeting.module - Implements hook_menu().
File
- ./
makemeeting.pages.inc, line 58
Code
function makemeeting_logpage($admin_url) {
// loading the node
$node_id = db_result(db_query("SELECT nid FROM {makemeeting_poll_heads} WHERE admin_url = '%s'", $admin_url));
$node = node_load($node_id);
drupal_set_breadcrumb(array(
l(t('Home'), NULL),
l(t('Make Meetings'), 'makemeeting'),
l(t("Admin page: @question", array(
'@question' => $node->title,
)), 'makemeeting/' . $node->poll_admin_url),
l(t("View logs"), 'makemeeting/' . $node->poll_admin_url . "/log"),
));
$result = db_query("SELECT * FROM {makemeeting_poll_logs} WHERE nid = %d ORDER BY dt DESC", $node_id);
$rows = array();
while ($row = db_fetch_array($result)) {
$rows[] = $row;
}
return theme('makemeeting_logpage', $rows);
}