You are here

function photos_access_pass_form in Album Photos 7.3

Password form.

1 string reference to 'photos_access_pass_form'
photos_access_page in photos_access/photos_access.module
Password entry page.

File

photos_access/photos_access.module, line 588

Code

function photos_access_pass_form($form, &$form_state, $node) {
  $form = array();
  $form['pass'] = array(
    '#type' => 'password',
    '#title' => t('Please enter password'),
  );
  $form['nid'] = array(
    '#type' => 'value',
    '#value' => $node->nid,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  $form['#validate'][] = 'photos_access_pass_form_validate';
  return $form;
}