function og_validate_group in Organic groups 5.2
1 call to og_validate_group()
- og_nodeapi in ./
og.module - Implementation of hook_nodeapi().
File
- ./
og.module, line 1210
Code
function og_validate_group(&$node) {
// Ensure valid URL was entered for website
if (isset($node->og_website) && !empty($node->og_website)) {
if (!valid_url($node->og_website, TRUE)) {
form_set_error('og_website', t('Please enter a valid URL for group website, such as http://www.example.com/'));
}
}
}