function rate_update_6000 in Rate 7
Same name and namespace in other branches
- 6.2 rate.install \rate_update_6000()
Rename helpful template to yesno.
File
- ./
rate.install, line 94 - Installation/Uninstallation functions for rate module.
Code
function rate_update_6000() {
$widgets = variable_get('rate_widgets', array());
foreach ($widgets as $widget_id => $widget) {
$template = isset($widget->template) ? $widget->template : NULL;
// "helpful" template was renamed to "yesno".
if ($template == 'helpful') {
$widget->template = 'yesno';
}
$widgets[$widget_id] = $widget;
}
variable_set('rate_widgets', $widgets);
return array();
}