You are here

function attachment_links_enable in Attachment Links 6

Implementation of hook_enable(). Make this module heavy to encourage Drupal to run its hooks after the Upload module's hooks.

Return value

None.

File

./attachment_links.module, line 32
The Attachment Links module provides permanent links to files attached to a node. A single, easy-to-remember URL can be used to retrieve the preferred (canonical) or newest version of a file regardless of how many versions of that file have been…

Code

function attachment_links_enable() {
  $query = "UPDATE {system} SET `weight` = 99 WHERE `name` = 'attachment_links'";
  db_query($query);
}