function amazon_update_7104 in Amazon Product Advertisement API 7
Same name and namespace in other branches
- 7.2 amazon.install \amazon_update_7104()
Move module config into Web Services section.
File
- ./
amazon.install, line 170 - Install, update and uninstall functions for the amazon module.
Code
function amazon_update_7104() {
$paths = array(
'admin/config/amazon_settings/amazon' => 'admin/config/services/amazon',
'admin/config/amazon_settings/amazon/api' => 'admin/config/services/amazon/api',
'admin/config/amazon_settings/amazon/storage' => 'admin/config/services/amazon/storage',
'admin/config/amazon_settings/amazon/test' => 'admin/config/services/amazon/test',
);
foreach ($paths as $prev_path => $new_path) {
db_query('UPDATE {menu_router} set path=:path WHERE path=:prev', array(
':path' => $new_path,
':prev' => $prev_path,
));
}
menu_rebuild();
}