function ed_readmore_install in Read More Link (Drupal 6 and earlier) 5
Same name and namespace in other branches
- 6.5 ed_readmore.install \ed_readmore_install()
- 6.2 ed_readmore.install \ed_readmore_install()
- 6.3 ed_readmore.install \ed_readmore_install()
Implementation of hook_install
Sets the module weight to make ed_readmore run later than most other modules. This prevents a conflict over the value of $node->readmore when used together with excerpt.module
File
- ./
ed_readmore.install, line 10
Code
function ed_readmore_install() {
$ret = db_query("UPDATE {system} SET weight = 5 WHERE name = 'ed_readmore'");
if ($ret) {
drupal_set_message(t('Ed_readmore module installed succesfully.'));
}
else {
drupal_set_message(t('Ed_readmore module installation was unsuccessfull. Could not update module weight in DB.', 'error'));
}
}