function avatar_selection_update_7004 in Avatar Selection 7
Change weight of avatar_selection module.
File
- ./
avatar_selection.install, line 409 - The Avatar Selection module install file.
Code
function avatar_selection_update_7004() {
$weight = db_select('system', 's')
->fields('s', array(
'weight',
))
->condition('name', 'avatar_selection')
->execute()
->fetchField();
if ($weight <= 0) {
db_query("UPDATE {system} SET weight = 1 WHERE name = 'avatar_selection'");
}
return t('Updated weight of avatar selection module.');
}