classes/fields/pick.php
public function admin_modal_bail_pod( $id, $params, $obj ) {

		if ( ! pods_is_modal_window() ) {
			return;
		}

		if ( ! $obj ) {
			$obj = pods( $params['pod'] );
		}

		if ( ! $obj || ! $obj->fetch( $id ) ) {
			return;
		}

		$item_id    = $obj->id();
		$item_title = $obj->index();

		$field_args = (object) array(
			'options' => array(
				'pick_object' => $obj->pod_data['type'],
				'pick_val'    => $obj->pod,
			),
			'value'   => array(
				$obj->id() => $item_title,
			),
		);

		$this->admin_modal_bail_JSON( $item_id, $item_title, $field_args );

	}
public function admin_modal_bail_pod( $id, $params, $obj ) {

		if ( ! pods_is_modal_window() ) {
			return;
		}

		if ( ! $obj ) {
			$obj = pods( $params['pod'] );
		}

		if ( ! $obj || ! $obj->fetch( $id ) ) {
			return;
		}

		$item_id    = $obj->id();
		$item_title = $obj->index();

		$field_args = (object) array(
			'options' => array(
				'pick_object' => $obj->pod_data['type'],
				'pick_val'    => $obj->pod,
			),
			'value'   => array(
				$obj->id() => $item_title,
			),
		);

		$this->admin_modal_bail_JSON( $item_id, $item_title, $field_args );

	}
public function admin_modal_bail_pod ( $ id , $ params , $ obj ) { if ( ! pods_is_modal_window ( ) ) { return ; } if ( ! $ obj ) { $ obj = pods ( $ params [ 'pod' ] ) ; } if ( ! $ obj || ! $ obj -> fetch ( $ id ) ) { return ; } $ item_id = $ obj -> id ( ) ; $ item_title = $ obj -> index ( ) ; $ field_args = ( object ) array ( 'options' => array ( 'pick_object' => $ obj -> pod_data [ 'type' ] , 'pick_val' => $ obj -> pod , ) , 'value' => array ( $ obj -> id ( ) => $ item_title , ) , ) ; $ this -> admin_modal_bail_JSON ( $ item_id , $ item_title , $ field_args ) ; }
Bail on Pod item save for Admin modal.

@param int       $id     Item ID.
@param array     $params save_pod_item parameters.
@param null|Pods $obj    Pod object (if set).
Bail on Pod item save for Admin modal .