summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 84a84b0e0..5c715d981 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -81,6 +81,7 @@ function poll_menu() {
'page callback' => 'poll_page',
'access arguments' => array('access content'),
'type' => MENU_SUGGESTED_ITEM,
+ 'file' => 'poll.pages.inc',
);
$items['node/%node/votes'] = array(
@@ -91,6 +92,7 @@ function poll_menu() {
'access arguments' => array(1, 'inspect all votes', FALSE),
'weight' => 3,
'type' => MENU_LOCAL_TASK,
+ 'file' => 'poll.pages.inc',
);
$items['node/%node/results'] = array(
@@ -101,6 +103,7 @@ function poll_menu() {
'access arguments' => array(1, 'access content', TRUE),
'weight' => 3,
'type' => MENU_LOCAL_TASK,
+ 'file' => 'poll.pages.inc',
);
return $items;
@@ -322,6 +325,7 @@ function poll_form($node, $form_state) {
* entire form is rebuilt during the page reload.
*/
function poll_more_choices_submit($form, &$form_state) {
+ include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'node') . '/node.pages.inc';
// Set the form to rebuild and run submit handlers.
node_form_submit_build_node($form, $form_state);