You are here

function fillpdf_token_list in FillPDF 6

File

./webform_tokens.inc, line 35

Code

function fillpdf_token_list($type = 'all') {
  if ($type == 'webform' || $type == 'all') {
    $tokens['webform']['webform-meta-nid'] = t("The webform's node id");
    $tokens['webform']['webform-meta-sid'] = t("The webform's submission id");
    $tokens['webform']['webform-meta-uid'] = t("The user's id who submitted the webform");
    $tokens['webform']['webform-meta-remote_addr'] = t("The user's ip address who submitted the webform");
    $tokens['webform']['webform-meta-submitted'] = t("The date the webform was submitted");
    $fields = array();
    $q = db_query('SELECT name, form_key FROM {webform_component}');
    while ($component = db_fetch_array($q)) {
      $tokens['webform']["webform-val-{$component['form_key']}"] = t("The value for webform component [{$component['name']}]");
    }
    return $tokens;
  }
}