function quote_update_1 in Quote 6.2
Same name and namespace in other branches
- 5 quote.install \quote_update_1()
- 6 quote.install \quote_update_1()
Unify quote module settings into one variable.
File
- ./
quote.install, line 19
Code
function quote_update_1() {
$quote = array(
'node_types' => variable_get('quote_node_types', array(
'blog',
'story',
)),
'node_link_display' => variable_get('quote_node_link_display', 1),
'subject_required' => variable_get('quote_subject_required', 1),
);
variable_set('quote', $quote);
variable_del('quote_node_types');
variable_del('quote_node_link_display');
variable_del('quote_subject_required');
return array();
}