Skip to main content
1 of 2
Jimajamma
  • 17.1k
  • 1
  • 28
  • 35

You can look at views_get_view_result() and do something like this:

$result=views_get_view_result('teachers');
if ($result[0]) {
  // we have results
} else {
  // we don't
}
Jimajamma
  • 17.1k
  • 1
  • 28
  • 35