You are here

function advpoll_theme in Advanced Poll 6

Same name and namespace in other branches
  1. 8 advpoll.module \advpoll_theme()
  2. 6.3 advpoll.module \advpoll_theme()
  3. 6.2 advpoll.module \advpoll_theme()
  4. 7.3 advpoll.module \advpoll_theme()
  5. 7 advpoll.module \advpoll_theme()
  6. 7.2 advpoll.module \advpoll_theme()

Implementation of hook_theme().

File

./advpoll.module, line 1622
Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.

Code

function advpoll_theme() {
  return array(
    'advpoll_page' => array(
      'arguments' => array(
        '' => '',
      ),
    ),
    'advpoll_block_latest_poll' => array(
      'arguments' => array(),
    ),
    'advpoll_results' => array(
      'arguments' => array(
        'title' => '',
        'results' => '',
        'votes' => '',
        'links' => '',
        'nid' => '',
        'voted' => '',
        'cancel_vote' => '',
      ),
    ),
    'advpoll_bar' => array(
      'arguments' => array(
        'title' => '',
        'percentage' => '',
        'votes' => '',
        'choice' => NULL,
      ),
    ),
    'advpoll_voting_ranking_form' => array(
      'template' => 'advpoll-display-ranking-form',
      'file' => 'modes/ranking.inc',
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'advpoll_voting_binary_form' => array(
      'template' => 'advpoll-display-binary-form',
      'file' => 'modes/binary.inc',
      'arguments' => array(
        'form' => NULL,
      ),
    ),
  );
}