You are here

function poptin_is_user in Website Popups, Email Popup, Exit-Intent Popup, and Contact Forms – Poptin 7

Same name and namespace in other branches
  1. 8 includes/poptin.inc \poptin_is_user()

Implements poptin_is_user().

1 call to poptin_is_user()
poptin_render_html in includes/poptin.inc
Implements poptin_render_html().

File

includes/poptin.inc, line 348
Creating HTML for admin part, where user can signup or login for poptin.

Code

function poptin_is_user() {
  $result = db_select('poptin', 'p')
    ->fields('p')
    ->execute();
  $num_of_results = $result
    ->rowCount();
  if ($num_of_results > 0) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}