Description
Display form to add a custom field
Usage
oik_fie_add_oik_fie();Parameters
Returns
voidSource
File name: oik-types/admin/oik-fields.phpLines:
1 to 18 of 18
function oik_fie_add_oik_fie( ) { global $bw_field; if ( null === $bw_field ) { _oik_fie_field_validate(); } bw_form(); stag( "table", "wide-fat" ); bw_textfield( "field", 20, "Name", $bw_field['args']['field'] ); // bw_textfield( "type", 20, "Type", $bw_field['args']['type'] ); $field_types = apply_filters( "oik_query_field_types", array() ); // bw_trace2( $field_types, "field_types" ); bw_select( "type", "Type", null, array( "#options" => $field_types ) ); bw_textfield( "title", 100, "Title", stripslashes( $bw_field['args']['title'] ), 10 ); bw_checkbox( "required", "Required field?", $bw_field['args']["required"] ); etag( "table" ); p( isubmit( "_oik_fie_add_oik_fie", "Add new field", null, "button-primary" ) ); etag( "form" ); }View on GitHub
Called by
Invoked by
Calls
1 to 7 of 7
