function diff_update_7305 in Diff 7.3
Updates to normalize the new view mode settings.
File
- ./
diff.install, line 111 - Provides uninstallation functions.
Code
function diff_update_7305() {
// Rebuild the menus.
variable_set('menu_rebuild_needed', TRUE);
// Removed the enforced entity view mode.
db_delete('variable')
->condition('name', db_like('diff_view_mode_standard_node_') . '%', 'LIKE')
->execute();
// Removes the configurable view mode for the inline diff block, as this
// is fairly meaningless and confusing to users.
db_delete('variable')
->condition('name', db_like('diff_view_mode_inline_') . '%', 'LIKE')
->execute();
}