function pay_node_update_6003 in Pay 7
Same name and namespace in other branches
- 6 modules/pay_node/pay_node.install \pay_node_update_6003()
Remove menu_path entries from pay_node forms. This was causing an incorrect menu callback for node/X/pay URLS and prevented transactions from being associated with nodes correctly.
File
- modules/
pay_node/ pay_node.install, line 74 - Install, update and uninstall functions for the Pay Node module.
Code
function pay_node_update_6003() {
// TODO: review this, check NULL bit.
db_update('pay_form')
->fields(array(
'menu_path' => NULL,
))
->condition('menu_path', 'node/%/pay', 'LIKE')
->execute();
return t('Removed menu_path entries from pay_node forms.');
}