You are here

function commons_q_a_rate_widget in Drupal Commons 7.3

Return a Rate module widget configuration used for thumbs up/down rating of answers.

1 call to commons_q_a_rate_widget()
commons_q_a_strongarm_alter in modules/commons/commons_q_a/commons_q_a.module
Implements hook_strongarm_alter().

File

modules/commons/commons_q_a/commons_q_a.module, line 367

Code

function commons_q_a_rate_widget() {
  return (object) array(
    'name' => 'commons_answer',
    'tag' => 'commons_thumbs_up_down',
    'title' => 'Answer',
    'node_types' => array(
      0 => 'answer',
    ),
    'comment_types' => array(),
    'options' => array(
      0 => array(
        0 => 1,
        1 => 'up',
      ),
      1 => array(
        0 => -1,
        1 => 'down',
      ),
    ),
    'template' => 'commons_thumbs_up_down',
    'node_display' => '2',
    'teaser_display' => FALSE,
    'comment_display' => '2',
    'node_display_mode' => '1',
    'teaser_display_mode' => '1',
    'comment_display_mode' => '1',
    'roles' => array(
      2 => '2',
      1 => 0,
    ),
    'allow_voting_by_author' => 1,
    'noperm_behaviour' => '3',
    'displayed' => '1',
    'displayed_just_voted' => '1',
    'description' => '',
    'description_in_compact' => TRUE,
    'delete_vote_on_second_click' => '1',
    'value_type' => 'points',
    'theme' => 'rate_template_commons_thumbs_up_down',
    'css' => 'profiles/commons/modules/contrib/commons_q_a/commons-thumbs-up-down.css',
    'translate' => TRUE,
    'use_source_translation' => TRUE,
  );
}