Description
Display form to edit a field
Usage
oik_fie_edit_field();Parameters
Returns
voidTO DO
Display field specific attributesSource
File name: oik-types/admin/oik-fields.phpLines:
1 to 18 of 18
function oik_fie_edit_field( ) { global $bw_field; bw_form(); stag( "table", "wide-fat" ); bw_tablerow( array( "Name", $bw_field['args']['field'] . ihidden( 'field', $bw_field['args']['field']) ) ); bw_tablerow( array( "Type", $bw_field['args']['type'] . ihidden( 'type', $bw_field['args']['type']) ) ); // bw_textfield( "type", 30, "Type", stripslashes( $bw_field['args']['type'] ) ); bw_textfield( "title", 100, "Title", stripslashes( $bw_field['args']['title'] ), 10 ); bw_checkbox( "required", "Required field?", $bw_field['args']["required"] ); $type = $bw_field['args']['type']; add_action( "oik_fie_edit_field_options", "oik_fie_edit_field_options" ); do_action( "oik_fie_edit_field_options", $type ); do_action( "oik_fie_edit_field_type_$type" ); etag( "table" ); p( isubmit( "_oik_fie_edit_field", "Change field", null, "button-primary" ) ); etag( "form" ); }View on GitHub
Called by
Invoked by
Calls
1 to 8 of 8
- bw_form() – Start a form
- bw_tablerow() – Display a table row or table head row when $tdtag = "th"
- bw_textfield() – Form a text field
- etag() – Output an end tag
- ihidden() – Return a hidden input field for a form
- isubmit() – Create a submit button
- p() – Output a paragraph of translatable text
- stag() – Output an HTML opening tag
