You are here

function activity_expire_validate in Activity 7

Same name and namespace in other branches
  1. 6.2 activity.admin.inc \activity_expire_validate()

Element validate callback

1 string reference to 'activity_expire_validate'
activity_settings_form in ./activity.admin.inc
Form builder to dispaly settings for activity module

File

./activity.admin.inc, line 347
activity.admin.inc Contains administrative forms for activity.module

Code

function activity_expire_validate($element, &$form_state) {
  if (empty($form_state['values']['activity_expire']) && !empty($form_state['values']['activity_min_count'])) {
    form_set_error('activity_expire', t('You must set a time limit in order to use the minimum count'));
  }
}