You are here

function top_searches_count_rows in Top Searches 6

Same name and namespace in other branches
  1. 5 top_searches.module \top_searches_count_rows()
  2. 7 top_searches.module \top_searches_count_rows()
2 calls to top_searches_count_rows()
top_searches_admin_form in ./top_searches.admin.inc
Admin UI. Allow to limit number of items in the results list and allow to clear the results
top_searches_form_clear in ./top_searches.admin.inc
Clears the Top Searches table

File

./top_searches.module, line 156

Code

function top_searches_count_rows() {
  $result = db_result(db_query("SELECT COUNT(*) FROM {top_searches}"));
  return $result ? $result : '0';
}