You are here

function _smart_ip_database_update_validate in Smart IP 6

Same name and namespace in other branches
  1. 6.2 includes/smart_ip.admin.inc \_smart_ip_database_update_validate()
  2. 7.2 includes/smart_ip.admin.inc \_smart_ip_database_update_validate()
  3. 7 includes/smart_ip.admin.inc \_smart_ip_database_update_validate()

Validation handler to update the Smart IP database.

1 string reference to '_smart_ip_database_update_validate'
smart_ip_admin_settings in includes/smart_ip.admin.inc
Smart IP administration settings.

File

includes/smart_ip.admin.inc, line 210
Admin interface callbacks/handlers to configure Smart IP.

Code

function _smart_ip_database_update_validate($form, &$form_state) {
  global $_smart_ip_db_update_access;
  if (variable_get('smart_ip_db_update_busy', FALSE) && !$_smart_ip_db_update_access) {
    form_set_error('smart_ip_update_database', t('Smart IP database update has already been initiated by cron'));
  }
}