function commons_q_a_strongarm_alter in Drupal Commons 7.3
Implements hook_strongarm_alter().
File
- modules/
commons/ commons_q_a/ commons_q_a.module, line 354
Code
function commons_q_a_strongarm_alter(&$items) {
// The Rate module stores all of its configuration data in a single variable.
// Add a thumbs up/down-style 'Answer' rate widget by altering the rate
// variable.
if (!empty($items['rate_widgets']->value)) {
$items['rate_widgets']->value[] = commons_q_a_rate_widget();
}
}