In selection.module we have

        foreach ($node->choice as $i => $choice) {
          $links[$i]['attributes']['class'] = 'decisions_selection_vote';
          $links[$i]['query'] = drupal_get_destination() . '&token='. selection_get_token($node->nid, $i);
          $links[$i]['title'] = check_plain($choice['label']);
          $links[$i]['href'] = "decisions_selection/vote/$node->nid/$i/";
        }
        
        if (!empty($links)) {
          $output = '';
          $output .= '<div class="decisions_selection_1click">';
          $output .= theme('links', $links, array('class' => 'decisions_selection_1click'));
          $output .= '</div>';
        }

But what if I want to add something in before $output is closed? I can't, really. Let's make all of this output themeable.

CommentFileSizeAuthor
#1 803408.patch1.82 KBezra-g

Comments

ezra-g’s picture

Status: Active » Needs review
StatusFileSize
new1.82 KB

Here's a simple patch that implements the suggested change.

ezra-g’s picture

Status: Needs review » Fixed

This is now committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.