function realname_admin_general_validate in Real Name 6        
                          
                  
                        
File
 
   - ./realname.admin.inc, line 129
- The RealName module allows the admin to choose fields from the user profile
that will be used to add a "realname" element (method) to a user object.
Hook_user is used to automatically add this to any user object that is loaded.
Code
function realname_admin_general_validate($form, &$form_state) {
  
  if (!$form_state['values']['realname_search_enable'] && $form_state['values']['realname_user_disable']) {
    form_set_error('realname_user_disable', t('User search disable cannot be used if RealName search is not enabled.'));
  }
}