You are here

ed_readmore.install in Read More Link (Drupal 6 and earlier) 5

Same filename and directory in other branches
  1. 6.5 ed_readmore.install
  2. 6.2 ed_readmore.install
  3. 6.3 ed_readmore.install

File

ed_readmore.install
View source
<?php

/**
 * 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
 */
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'));
  }
}
function ed_readmore_uninstall() {

  // Remove active vars
  variable_del('ed_readmore_readmore_tweak');
  variable_del('ed_readmore_readmore_strong');
  variable_del('ed_readmore_readmore_inline');
  variable_del('ed_readmore_text');
}

Functions

Namesort descending Description
ed_readmore_install Implementation of hook_install
ed_readmore_uninstall