I've found that adding this to the admin_init hook will break the Gravity Forms edit form interface:
function my_func_clear_admin() {
remove_menu_page('edit-comments.php');
remove_menu_page('link-manager.php');
}
regardless of the function name, having any kind of remove_menu_page function call will cause the edit form screen to throw a javascript error:
Uncaught SyntaxError: Unexpected identifier in tw-sack.js line 1
Are there any solutions to this?