function weather_update_7201 in Weather 7.3
Same name and namespace in other branches
- 7.2 weather.install \weather_update_7201()
Convert old permission 'access weather pages' to new permission 'access weather search page'.
File
- ./
weather.install, line 680 - Install, update and uninstall functions for the weather module.
Code
function weather_update_7201(&$sandbox) {
db_update('role_permission')
->fields(array(
'permission' => 'access weather search page',
))
->condition('permission', 'access weather pages')
->condition('module', 'weather')
->execute();
}