You are here

function read_more_install in Read More Link 7

Implements 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

./read_more.install, line 16
Install file.

Code

function read_more_install() {

  // TODO: Thoroughly review this implementation.
  db_update('system')
    ->fields(array(
    'weight' => 5,
  ))
    ->condition('name', 'read_more')
    ->execute();
}