You are here

function file_force_install in File Force Download 7

Implements hook_install().

File

./file_force.install, line 6

Code

function file_force_install() {
  $status = array();

  // Set module weight for the module
  $status[] = db_query("UPDATE {system} SET weight = 10 WHERE name = 'file_force'");

  // If there is one FALSE value in the status array, there was an error.
  if (array_search(FALSE, $status) !== FALSE) {
    drupal_set_message(t('Setting the module weight of File Force Download failed.'), 'error');
  }
}