Skip to main content
added 4 characters in body; added 7 characters in body
Source Link
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 (isset($result[0])) {
  // we have results
} else {
  // we don't
}

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
}

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

$result=views_get_view_result('teachers');
if (isset($result[0])) {
  // we have results
} else {
  // we don't
}
Source Link
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
}