Skip to content

Instantly share code, notes, and snippets.

@spivurno
Created September 13, 2012 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spivurno/3711007 to your computer and use it in GitHub Desktop.
Save spivurno/3711007 to your computer and use it in GitHub Desktop.
$form_id = 5;
$entries_left_message = 'Only %s positions left!';
$form = RGFormsModel::get_form_meta($form_id);
$entry_count = RGFormsModel::get_lead_count($form['id'], '');
$entries_left = $form["limitEntriesCount"] - $entry_count;
printf($entries_left_message, $entries_left);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment