function talk_update_1 in Talk 7
Same name and namespace in other branches
- 6 talk.install \talk_update_1()
Provide 3 different settings instead of the one. Default to the one.
File
- ./
talk.install, line 20 - Install/uninstall code for talk module.
Code
function talk_update_1() {
$default = variable_get('talk_title', t('Talk'));
variable_set('talk_tab', $default);
variable_set('talk_page', $default);
variable_set('talk_link', $default);
variable_del('talk_title');
return array(
array(
'success' => TRUE,
'query' => 'Your Talk module settings have been updated automatically to support customizable strings. You may want to configure them further at Administer > Site configuration > Talk page.',
),
);
}