library/src/blockclass/subclasses/BP_WebFormSubmitter.cc
// retrieve a custom behavior by name
retrieve a custom behavior by name
retrieve a custom behavior by name
P_FORM_FIELD_SUBMIT_CUSTOM_BEHAIVOR BP_WebFormSubmitter::getFieldBehaviorModificationByName(char * input_name)
{
	if(!input_name)
	{
		this->AddErr("Input name is needed for search of behavior mod structures.");
		return NULL;
	}
	size_t n = 0;
	for(; n < this->field_custom_behavior_n; n++)
	{
		if(BP_strncasecmp(input_name, this->field_custom_behaivors[n].field_name, bpstrlen(input_name)) == 0)
		{
			return (P_FORM_FIELD_SUBMIT_CUSTOM_BEHAIVOR) &this->field_custom_behaivors[n];
		}
	}
	return NULL;
}
P_FORM_FIELD_SUBMIT_CUSTOM_BEHAIVOR BP_WebFormSubmitter :: getFieldBehaviorModificationByName ( char * input_name ) { if ( ! input_name ) { this -> AddErr ( " " ) ; return NULL ; } size_t n = 0 ; for ( ; n < this -> field_custom_behavior_n ; n ++ ) { if ( BP_strncasecmp ( input_name , this -> field_custom_behaivors [ n ] . field_name , bpstrlen ( input_name ) ) == 0 ) { return ( P_FORM_FIELD_SUBMIT_CUSTOM_BEHAIVOR ) & this -> field_custom_behaivors [ n ] ; } } return NULL ; }
retrieve a custom behavior by name
retrieve a custom behavior by name
// return null if we cant find an item