public function DrupalSystem::installSetModuleWeight in X Autoload 7.5
Called from xautoload_install() to set the module weight.
Parameters
int $weight: New module weight for xautoload.
Overrides DrupalSystemInterface::installSetModuleWeight
File
- src/
DrupalSystem/ DrupalSystem.php, line 128
Class
Namespace
Drupal\xautoload\DrupalSystemCode
public function installSetModuleWeight($weight) {
db_update('system')
->fields(array(
'weight' => $weight,
))
->condition('name', 'xautoload')
->condition('type', 'module')
->execute();
system_list_reset();
}