You are here

function top_searches_count_rows in Top Searches 5

Same name and namespace in other branches
  1. 6 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.module
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.module
Clears the Top Searches table

File

./top_searches.module, line 131

Code

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