vkxp.pages.inc in VK CrossPoster 6.2
Same filename and directory in other branches
vkxp.pages.inc Contains all forms for VKXP modue.
File
vkxp.pages.incView 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
Name | Description |
---|---|
vkxp_captcha_form | Provides special form for captcha. |
vkxp_captcha_page | Provides special form for captcha. |