You appear to be a bot. Output may be restricted
Description
Return the function name to be used to 'form' the fieldWe append to the $prefix function name to find the most precise name that exists: $prefix – default function if the field type is not known $prefix$field_type – e.g. bw_form_field_text or bw_form_field_url $prefix$field_name – e.g. bw_form_field__task_ref
Usage
bw_form_function( $prefix, $field_type, $field_name );
Parameters
- $prefix
- ( string ) optional default: bw_form_field_ – the prefix for the function name
- $field_type
- ( string ) optional default: text – type of the field to form
- $field_name
- ( string ) optional – name of the field to form
Returns
voidSource
File name: oik/includes/bw_metadata.phpLines:
1 to 14 of 14
function bw_form_function( $prefix="bw_form_field_", $field_type= 'text', $field_name = NULL ) { bw_pre_form_field(); $funcname = $prefix; $testname = $funcname . $field_type; if ( function_exists( $testname ) ) $funcname = $testname; $testname = $prefix . $field_name; if ( function_exists( $testname )) $funcname = $testname; return bw_trace2( $funcname ); }View on GitHub View on Trac