Closed (fixed)
Project:
Decisions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 May 2010 at 16:14 UTC
Updated:
9 Jun 2010 at 21:40 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 803408.patch | 1.82 KB | ezra-g |
Comments
Comment #1
ezra-g commentedHere's a simple patch that implements the suggested change.
Comment #2
ezra-g commentedThis is now committed.