My client wants to hide most of the functionality of GF for their 'editor' users but give them access to the entries. I was able to restrict access using the Members plugin, and figured out how to add a menu item, but they'd specifically like it to show just entries for a specific form (id=4).
Here's the code that's working to add a sub-menu to the Media menu that links to all entries. Is there any way to specify a form id in the callback here?
add_action('admin_menu', 'my_add_pages');
function my_add_pages(){
add_submenu_page('upload.php', __("Entries", "gravityforms"), __("Entries", "gravityforms"), "gravityforms_view_entries", "my_gf_entries", array("RGForms", "all_leads_page"));
}
Thanks!