function views_content_context_view_settings_form_validate in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 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 150 - 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_state) {
if (empty($form_state['values']['view'])) {
form_error($form['view'], t('You must select a view.'));
}
}