You are here

function entityform_user_submitted in Entityform 7.2

Same name and namespace in other branches
  1. 7 entityform.module \entityform_user_submitted()

Has the user submitted a form

Parameters

string $type:

unknown_type $uid:

Return value

boolean

File

./entityform.module, line 492
Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface

Code

function entityform_user_submitted($type, $uid = NULL) {
  if (!$uid) {
    global $user;
    $uid = $user->uid;
  }
  $submissions = entityform_get_submissions($type, $uid, 0, 1);
  return !empty($submissions);
}