function commons_like_preprocess_rate_template_commons_like in Drupal Commons 7.3
Preprocess function for the commons_like template.
File
- modules/
commons/ commons_like/ commons_like.module, line 122
Code
function commons_like_preprocess_rate_template_commons_like(&$variables) {
$variables['like_button'] = theme('rate_button', array(
'text' => $variables['links'][0]['text'],
'href' => $variables['links'][0]['href'],
'class' => 'rate-commons-like-btn',
));
}