book_made_simple.install in Book made simple 7.3
Same filename and directory in other branches
Install file for book_made_simple.
File
book_made_simple.installView source
<?php
/**
* @file
* Install file for book_made_simple.
*/
/**
* Implements hook_install().
*/
function book_made_simple_install() {
db_query("UPDATE {system} SET weight = 10 WHERE name = 'book_made_simple'");
}
function book_made_simple_update_6013() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'book_made_simple'");
break;
}
return $ret;
}
/**
* Implements hook_uninstall().
*/
function book_made_simple_uninstall() {
variable_del('book_made_simple_auto_main_page');
variable_del('book_made_simple_add_types');
}
Functions
Name![]() |
Description |
---|---|
book_made_simple_install | Implements hook_install(). |
book_made_simple_uninstall | Implements hook_uninstall(). |
book_made_simple_update_6013 |