function views_content_context_view_settings_form_validate in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 views_content/plugins/contexts/view.inc \views_content_context_view_settings_form_validate()
Validate a node.
1 string reference to 'views_content_context_view_settings_form_validate'
File
- views_content/
plugins/ contexts/ view.inc, line 110 - Plugin to provide a node context. A node context is a node wrapped in a context object that can be utilized by anything that accepts contexts.
Code
function views_content_context_view_settings_form_validate($form, &$form_values, &$form_state) {
if (empty($form_values['view'])) {
form_error($form['view'], t('You must select a view.'));
}
}