You are here

function entityform_user_submitted in Entityform 7

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

Has the user submitted a form

Parameters

string $type:

unknown_type $uid:

Return value

boolean

File

./entityform.module, line 489
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);
  return !empty($submissions);
}