--- poll.old Sat Feb 26 08:34:01 2005 +++ poll.module Sat Feb 26 08:53:23 2005 @@ -263,6 +263,18 @@ return t("poll"); } +/** + * Implementation of hook_settings(). + */ +function poll_settings($setting) { + switch($setting) { + case 'title_label': + return t('Question'); + case 'name': + return t('poll'); + } +} + function poll_page() { // List all polls $sql = "SELECT n.nid, n.title, p.active, n.created, SUM(c.chvotes) AS votes FROM {node} n INNER JOIN {poll} p ON n.nid = p.nid INNER JOIN {poll_choices} c ON n.nid = c.nid WHERE type = 'poll' AND status = 1 AND moderate = 0 GROUP BY n.nid, n.title, p.active, n.created ORDER BY n.created DESC";