Skip to content

Instantly share code, notes, and snippets.

@jlavialle
Created August 27, 2013 12:19
Show Gist options
  • Select an option

  • Save jlavialle/6352795 to your computer and use it in GitHub Desktop.

Select an option

Save jlavialle/6352795 to your computer and use it in GitHub Desktop.
Weight for module
/**
* Implements hook_enable()
* @link https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_enable/7
*/
function cirpack_extranet_user_account_enable() {
db_update('system')
->fields(array('weight' => 10))
->condition('type', 'module')
->condition('name', 'cirpack_extranet_user_account')
->execute();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment