| 1 |
<?php
|
| 2 |
// $Id: quote.install,v 1.1.2.1 2007/08/11 09:34:53 karthik Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function quote_install() {
|
| 8 |
$ret = array();
|
| 9 |
|
| 10 |
drupal_set_message(t('The quote module has been installed successfully.'));
|
| 11 |
|
| 12 |
return $ret;
|
| 13 |
}
|
| 14 |
|
| 15 |
/**
|
| 16 |
* Unify quote module settings into one variable.
|
| 17 |
*/
|
| 18 |
function quote_update_1() {
|
| 19 |
$quote = array(
|
| 20 |
'node_types' => variable_get('quote_node_types', array('blog', 'story')),
|
| 21 |
'node_link_display' => variable_get('quote_node_link_display', 1),
|
| 22 |
'subject_required' => variable_get('quote_subject_required', 1)
|
| 23 |
);
|
| 24 |
|
| 25 |
variable_set('quote', $quote);
|
| 26 |
|
| 27 |
variable_del('quote_node_types');
|
| 28 |
variable_del('quote_node_link_display');
|
| 29 |
variable_del('quote_subject_required');
|
| 30 |
|
| 31 |
return array();
|
| 32 |
}
|
| 33 |
|
| 34 |
/**
|
| 35 |
* Implementation of hook_uninstall().
|
| 36 |
*/
|
| 37 |
function quote_uninstall() {
|
| 38 |
variable_del('quote');
|
| 39 |
}
|