-
-
Save sebcunin/6352902 to your computer and use it in GitHub Desktop.
Modify the module's weight (#drupal)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Implements hook_enable() | |
| * @link https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_enable/7 | |
| */ | |
| function MYMODULE_NAME_enable() { | |
| db_update('system') | |
| ->fields(array('weight' => WEIGHT_VALUE)) | |
| ->condition('type', 'module') | |
| ->condition('name', 'MYMODULE_NAME') | |
| ->execute(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment