classes/PodsForm.php
public static function ui_options( $type ) {

		$core_defaults = array(
			'id'             => 0,
			'name'           => '',
			'label'          => '',
			'description'    => '',
			'help'           => '',
			'default'        => null,
			'attributes'     => array(),
			'class'          => '',
			'type'           => 'text',
			'group'          => 0,
			'grouped'        => 0,
			'developer_mode' => false,
			'dependency'     => false,
			'depends-on'     => array(),
			'excludes-on'    => array(),
			'options'        => array(),
		);

		self::field_loader( $type );

		$options = apply_filters( "pods_field_{$type}_ui_options", (array) self::$loaded[ $type ]->ui_options(), $type );

		$first_field = current( $options );

		if ( ! empty( $options ) && ! isset( $first_field['name'] ) && ! isset( $first_field['label'] ) ) {
			foreach ( $options as $group => $group_options ) {
				$options[ $group ] = self::fields_setup( $group_options, $core_defaults );
			}
		} else {
			$options = self::fields_setup( $options, $core_defaults );
		}

		return $options;
	}
public static function ui_options( $type ) {

		$core_defaults = array(
			'id'             => 0,
			'name'           => '',
			'label'          => '',
			'description'    => '',
			'help'           => '',
			'default'        => null,
			'attributes'     => array(),
			'class'          => '',
			'type'           => 'text',
			'group'          => 0,
			'grouped'        => 0,
			'developer_mode' => false,
			'dependency'     => false,
			'depends-on'     => array(),
			'excludes-on'    => array(),
			'options'        => array(),
		);

		self::field_loader( $type );

		$options = apply_filters( "pods_field_{$type}_ui_options", (array) self::$loaded[ $type ]->ui_options(), $type );

		$first_field = current( $options );

		if ( ! empty( $options ) && ! isset( $first_field['name'] ) && ! isset( $first_field['label'] ) ) {
			foreach ( $options as $group => $group_options ) {
				$options[ $group ] = self::fields_setup( $group_options, $core_defaults );
			}
		} else {
			$options = self::fields_setup( $options, $core_defaults );
		}

		return $options;
	}
public static function ui_options ( $ type ) { $ core_defaults = array ( 'id' => 0 , 'name' => '' , 'label' => '' , 'description' => '' , 'help' => '' , 'default' => null , 'attributes' => array ( ) , 'class' => '' , 'type' => 'text' , 'group' => 0 , 'grouped' => 0 , 'developer_mode' => false , 'dependency' => false , 'depends-on' => array ( ) , 'excludes-on' => array ( ) , 'options' => array ( ) , ) ; self :: field_loader ( $ type ) ; $ options = apply_filters ( "pods_field_{$type}_ui_options" , ( array ) self :: $ loaded [ $ type ] -> ui_options ( ) , $ type ) ; $ first_field = current ( $ options ) ; if ( ! empty ( $ options ) && ! isset ( $ first_field [ 'name' ] ) && ! isset ( $ first_field [ 'label' ] ) ) { foreach ( $ options as $ group => $ group_options ) { $ options [ $ group ] = self :: fields_setup ( $ group_options , $ core_defaults ) ; } } else { $ options = self :: fields_setup ( $ options , $ core_defaults ) ; } return $ options ; }
Get Admin options for a field type and setup defaults

@static

@param $type

@return array|null

@since 2.0.0
Get Admin options for a field type and setup defaults