View source
<?php
function quote_install() {
$ret = array();
drupal_set_message(t('The quote module has been installed successfully.'));
return $ret;
}
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();
}
function quote_uninstall() {
variable_del('quote');
}