1) ? $ids[$offset-1] : ''; $menu['CURRENT'] = $ids[$offset]; $menu['NEXT'] = !empty($ids[$offset+1]) ? $ids[$offset+1] : ''; } return $menu; } function menu($module, $offset, $isAuditEnabled, $saveAndContinue = false ){ $html_text = ""; if($offset < 0) { $offset = 0; } //this check if require in cases when you visit the edit view before visiting that modules list view. //you can do this easily either from home, activities or sitemap. $stored_vcr_query=SugarVCR::retrieve($module); if(!empty($_REQUEST['record']) and !empty($stored_vcr_query) and isset($_REQUEST['offset']) and (empty($_REQUEST['isDuplicate']) or $_REQUEST['isDuplicate'] == 'false')){ // bug 15893 - only show VCR if called as an element in a set of records //syncing with display offset; $offset++; $action = (!empty($_REQUEST['action']) ? $_REQUEST['action'] : 'EditView'); //$html_text .= "
".$list_link." ".$previous_link." (".$count.") ".$next_link." | "; $html_text .= "