function og_panels_content_types_validate_callback_faces in Organic groups 5.8
Same name and namespace in other branches
- 5 includes/groupcontent.inc \og_panels_content_types_validate_callback_faces()
- 5.3 includes/groupcontent.inc \og_panels_content_types_validate_callback_faces()
- 5.7 includes/groupcontent.inc \og_panels_content_types_validate_callback_faces()
- 6 includes/og.panelscontent.inc \og_panels_content_types_validate_callback_faces()
1 string reference to 'og_panels_content_types_validate_callback_faces'
- og_panels_panels_content_types in ./
og_panels.module - Implementation of hook_panels_content_types()
File
- includes/
groupcontent.inc, line 220
Code
function og_panels_content_types_validate_callback_faces($form, $form_values) {
if (!is_numeric($form_values['column_count'])) {
form_error($form['column_count'], t('Number of pictures per row must be an integer.'));
}
if (!is_numeric($form_values['row_count'])) {
form_error($form['row_count'], t('Maximum number of rows per page must be an integer.'));
}
}