function _validate_name in Shoutbox 7.2
Same name and namespace in other branches
- 7 shoutbox.module \_validate_name()
File
- ./
shoutbox.module, line 614 - Shoutbox module displays a block for users to create short messages for the whole site. Uses AHAH to update the database and display content.
Code
function _validate_name($form, $form_state) {
if ($form_state['values']['name'] != '') {
$output = 'OK';
}
else {
$output = 'Enter a value';
}
return $output;
}