function pub_search

2.x tripal_pub.DEPRECATED.inc pub_search($search_array, $offset, $limit, &$total_records)
3.x tripal_pub.DEPRECATED.inc pub_search($search_array, $offset, $limit, &$total_records)

Deprecated

Restructured API to make naming more readable and consistent. Function was deprecated in Tripal 2.0 and will be removed 2 releases from now. This function has been replaced by tripal_search_publications().

See also

tripal_search_publications().

File

tripal_pub/api/tripal_pub.DEPRECATED.inc, line 14
Wrapper functions to provide backwards compatibility for the tripal analysis api

Code

function pub_search($search_array, $offset, $limit, &$total_records) {

  tripal_report_error(
  'tripal_deprecated', 
  TRIPAL_NOTICE, 
  "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.", 
  array(
    '%old_function' => 'pub_search',
    '%new_function' => 'tripal_search_pubs'
  )
  );

  return tripal_search_publications($search_array, $offset, $limit, $total_records);
}