function fb_instant_articles_validate_style in Facebook Instant Articles 7
Same name and namespace in other branches
- 7.2 includes/admin.inc \fb_instant_articles_validate_style()
Validation handler for Style
1 string reference to 'fb_instant_articles_validate_style'
- fb_instant_articles_settings in includes/
admin.inc - Form constructor for Facebook Instant Articles Base settings form.
File
- includes/
admin.inc, line 157 - Settings for Facebook Instant Articles Base module.
Code
function fb_instant_articles_validate_style($element, &$form_state, $form) {
if (empty($element['#value'])) {
form_error($element, t('You must specify a style for your Instant Articles.'));
}
}