|
@@ 2933-2940 (lines=8) @@
|
| 2930 |
|
|
| 2931 |
|
$fetch = false; |
| 2932 |
|
|
| 2933 |
|
if ( null === $id ) { |
| 2934 |
|
$fetch = true; |
| 2935 |
|
|
| 2936 |
|
$id = $pod->id(); |
| 2937 |
|
// @codingStandardsIgnoreLine |
| 2938 |
|
} elseif ( $id != $this->id() ) { |
| 2939 |
|
$pod = pods( $this->pod, $id ); |
| 2940 |
|
} |
| 2941 |
|
|
| 2942 |
|
$this->do_hook( 'add_to', $field, $value, $id ); |
| 2943 |
|
|
|
@@ 3049-3056 (lines=8) @@
|
| 3046 |
|
|
| 3047 |
|
$fetch = false; |
| 3048 |
|
|
| 3049 |
|
if ( null === $id ) { |
| 3050 |
|
$fetch = true; |
| 3051 |
|
|
| 3052 |
|
$id = $this->id(); |
| 3053 |
|
// @codingStandardsIgnoreLine |
| 3054 |
|
} elseif ( $id != $this->id() ) { |
| 3055 |
|
$pod = pods( $this->pod, $id ); |
| 3056 |
|
} |
| 3057 |
|
|
| 3058 |
|
$this->do_hook( 'remove_from', $field, $value, $id ); |
| 3059 |
|
|