| @@ 267-277 (lines=11) @@ | ||
| 264 | * @return mixed|string | |
| 265 | * @since 2.0 | |
| 266 | */ | |
| 267 |     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { | |
| 268 | $value = $this->strip_html( $value, $options ); | |
| 269 | ||
| 270 | $length = (int) pods_var( self::$type . '_max_length', $options, 0 ); | |
| 271 | ||
| 272 | 		if ( 0 < $length && $length < pods_mb_strlen( $value ) ) { | |
| 273 | $value = pods_mb_substr( $value, 0, $length ); | |
| 274 | } | |
| 275 | ||
| 276 | return $value; | |
| 277 | } | |
| 278 | ||
| 279 | /** | |
| 280 | * Customize the Pods UI manage table column output | |
| @@ 228-238 (lines=11) @@ | ||
| 225 | * @return mixed|string | |
| 226 | * @since 2.0 | |
| 227 | */ | |
| 228 |     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { | |
| 229 | $value = $this->strip_html( $value, $options ); | |
| 230 | ||
| 231 | $length = (int) pods_var( self::$type . '_max_length', $options, 255 ); | |
| 232 | ||
| 233 | 		if ( 0 < $length && $length < pods_mb_strlen( $value ) ) { | |
| 234 | $value = pods_mb_substr( $value, 0, $length ); | |
| 235 | } | |
| 236 | ||
| 237 | return $value; | |
| 238 | } | |
| 239 | ||
| 240 | /** | |
| 241 | * Customize the Pods UI manage table column output | |
| @@ 253-265 (lines=13) @@ | ||
| 250 | * | |
| 251 | * @since 2.0 | |
| 252 | */ | |
| 253 | 	public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { | |
| 254 | $options = (array) $options; | |
| 255 | ||
| 256 | $value = $this->validate_url( $value, $options ); | |
| 257 | ||
| 258 | $length = (int) pods_var( self::$type . '_max_length', $options, 255 ); | |
| 259 | ||
| 260 | 		if ( 0 < $length && $length < pods_mb_strlen( $value ) ) { | |
| 261 | $value = pods_mb_substr( $value, 0, $length ); | |
| 262 | } | |
| 263 | ||
| 264 | return $value; | |
| 265 | } | |
| 266 | ||
| 267 | /** | |
| 268 | * Customize the Pods UI manage table column output | |
| @@ 311-321 (lines=11) @@ | ||
| 308 | * | |
| 309 | * @since 2.0 | |
| 310 | */ | |
| 311 |     public function pre_save ( $value, $id = null, $name = null, $options = null, $fields = null, $pod = null, $params = null ) { | |
| 312 | $value = $this->strip_html( $value, $options ); | |
| 313 | ||
| 314 | $length = (int) pods_var( self::$type . '_max_length', $options, 0 ); | |
| 315 | ||
| 316 | 		if ( 0 < $length && $length < pods_mb_strlen( $value ) ) { | |
| 317 | $value = pods_mb_substr( $value, 0, $length ); | |
| 318 | } | |
| 319 | ||
| 320 | return $value; | |
| 321 | } | |
| 322 | ||
| 323 | /** | |
| 324 | * Customize the Pods UI manage table column output | |