You are here

function pmpapi_pull_pull_doc_by_guid in Public Media Platform API Integration 7

Form constructor for the PMPAPI pull form that gets doc by GUID.

See also

pmpapi_pull_pull_doc_by_guid_validate()

pmpapi_pull_pull_doc_by_guid_submit()

1 string reference to 'pmpapi_pull_pull_doc_by_guid'
pmpapi_pull_menu in pmpapi_pull/pmpapi_pull.module
Implements hook_menu().

File

pmpapi_pull/pmpapi_pull.pages.inc, line 11

Code

function pmpapi_pull_pull_doc_by_guid() {
  $form = array();
  $form['guid'] = array(
    '#type' => 'textfield',
    '#title' => t('PMP GUID'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Get document'),
  );
  return $form;
}