You appear to be a bot. Output may be restricted
Description
Handle the field options for a "noderef" type fieldoptions that go in bw_field['args']['#options'] are:
type – the post_types that this field can refer to
array( '#options' => $options )
Usage
oik_fie_edit_field_type_noderef();
Parameters
Returns
voidSource
File name: oik-types/admin/oik-fields.phpLines:
1 to 14 of 14
function oik_fie_edit_field_type_noderef() { //e( __FUNCTION__ ); global $bw_field; $post_types = bw_list_registered_post_types(); $argsargs = bw_array_get( $bw_field['args'], 'args', null ); $argsargs['#type'] = bw_array_get( $argsargs, "#type", null ); $argsargs['#multiple'] = bw_array_get( $argsargs, "#multiple", null ); $argsargs['#optional'] = bw_array_get( $argsargs, "#optional", null ); bw_select( "#type", "Node type(s)", $argsargs['#type'], array( '#options' => $post_types, '#multiple' => 10 ) ); bw_form_field( "#multiple", "numeric", "Single or multiple select", $argsargs['#multiple'] ); bw_form_field( "#optional", "checkbox", "Optional", $argsargs['#optional'] ); }View on GitHub