function _w3c_validator_uri_validator_build_form in W3C Validator 7
Form where you enter a uri to be validated.
Parameters
string $form_state:
Return value
void
1 call to _w3c_validator_uri_validator_build_form()
- w3c_validator_uri_validator_page in ./
w3c_validator.uri_validator.page.inc - Page callback to validate an URI.
File
- ./
w3c_validator.uri_validator.page.inc, line 64 - Page description for single URI validation.
Code
function _w3c_validator_uri_validator_build_form(&$form, &$form_state) {
$form['uri'] = array(
'#type' => 'textfield',
'#title' => t('URI of the page to validate'),
'#description' => t('Location (URL) of the webpage that you want to send to the W3C validator.'),
'#required' => TRUE,
);
$form['validate'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#ajax' => array(
'callback' => '_w3c_validator_uri_validator_form_submit',
'wrapper' => 'w3c_analysis',
),
);
$form['w3c_analysis-results'] = array(
'#type' => 'markup',
'#prefix' => '<div id="w3c_analysis" class="w3c_analysis-results">',
'#suffix' => '</div>',
);
return $form;
}