function photos_update_7302 in Album Photos 7.3
Add {photos_album}.wid to help sort albums by weight.
File
- ./
photos.install, line 511 - Install, update, and uninstall functions for the Album Photos module.
Code
function photos_update_7302() {
if (!db_field_exists('photos_album', 'wid')) {
// Add album wid.
$spec = array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
);
db_add_field('photos_album', 'wid', $spec);
db_add_index('photos_album', 'wid', array(
'wid',
));
return t('Successfully added album weight field!');
}
}