You are here

function og_panels_content_types_validate_callback_faces in Organic groups 6

Same name and namespace in other branches
  1. 5.8 includes/groupcontent.inc \og_panels_content_types_validate_callback_faces()
  2. 5 includes/groupcontent.inc \og_panels_content_types_validate_callback_faces()
  3. 5.3 includes/groupcontent.inc \og_panels_content_types_validate_callback_faces()
  4. 5.7 includes/groupcontent.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 modules/og_panels/og_panels.module
Implementation of hook_panels_content_types()

File

includes/og.panelscontent.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.'));
  }
}