2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
$links[]=lm(t("polls"),array("mod"=>"poll"),"",array("title"=>t("View the list of polls on this site.")));
}
return$links?$links:array();
}
...
...
@@ -145,6 +148,18 @@ function poll_node($field) {
return$info[$field];
}
functionpoll_page(){
global$theme;
$theme->header();
$result=db_query("SELECT n.nid, n.title, p.active, SUM(c.chvotes) AS votes FROM node n LEFT JOIN poll p ON n.nid=p.nid LEFT JOIN poll_choices c ON n.nid=c.nid WHERE type='poll' AND status='1' AND moderate='0' GROUP BY n.nid");
$links[]=lm(t("polls"),array("mod"=>"poll"),"",array("title"=>t("View the list of polls on this site.")));
}
return$links?$links:array();
}
...
...
@@ -145,6 +148,18 @@ function poll_node($field) {
return$info[$field];
}
functionpoll_page(){
global$theme;
$theme->header();
$result=db_query("SELECT n.nid, n.title, p.active, SUM(c.chvotes) AS votes FROM node n LEFT JOIN poll p ON n.nid=p.nid LEFT JOIN poll_choices c ON n.nid=c.nid WHERE type='poll' AND status='1' AND moderate='0' GROUP BY n.nid");