You are here

vkxp.pages.inc in VK CrossPoster 6.2

Same filename and directory in other branches
  1. 7 vkxp.pages.inc

vkxp.pages.inc Contains all forms for VKXP modue.

File

vkxp.pages.inc
View source
<?php

/**
 * @file vkxp.pages.inc
 * Contains all forms for VKXP modue.
 */

/**
 * Provides special form for captcha.
 */
function vkxp_captcha_page() {
  if (isset($_REQUEST['image']) && $_REQUEST['image']) {
    $form = drupal_get_form('vkxp_captcha_form', $_REQUEST['image']);
    return $form;
  }
  else {
    drupal_access_denied();
  }
}

/**
 * Provides special form for captcha.
 */
function vkxp_captcha_form($form_state, $image) {
  $form['image'] = array(
    '#type' => 'item',
    '#value' => '<img src = "' . $image . '" />',
  );
  $form['text'] = array(
    '#type' => 'textfield',
    '#size' => 10,
    '#title' => t('Enter captcha text'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Send captcha'),
  );
  return $form;
}

Functions

Namesort descending Description
vkxp_captcha_form Provides special form for captcha.
vkxp_captcha_page Provides special form for captcha.