@@ 1271-1278 (lines=8) @@ | ||
1268 | } |
|
1269 | } |
|
1270 | ||
1271 | if ( false !== $this->searchable ) { |
|
1272 | if ( 'search' != $which && isset( $this->fields[ 'search' ] ) &&!empty( $this->fields[ 'search' ] ) ) |
|
1273 | $this->fields[ 'search' ] = $this->setup_fields( $this->fields[ 'search' ], 'search' ); |
|
1274 | else |
|
1275 | $this->fields[ 'search' ] = $fields; |
|
1276 | } |
|
1277 | else |
|
1278 | $this->fields[ 'search' ] = false; |
|
1279 | ||
1280 | if ( !in_array( 'export', $this->actions_disabled ) ) { |
|
1281 | if ( 'export' != $which && isset( $this->fields[ 'export' ] ) &&!empty( $this->fields[ 'export' ] ) ) |
|
@@ 1285-1290 (lines=6) @@ | ||
1282 | $this->fields[ 'export' ] = $this->setup_fields( $this->fields[ 'export' ], 'export' ); |
|
1283 | } |
|
1284 | ||
1285 | if ( !in_array( 'reorder', $this->actions_disabled ) && false !== $this->reorder[ 'on' ] ) { |
|
1286 | if ( 'reorder' != $which && isset( $this->fields[ 'reorder' ] ) &&!empty( $this->fields[ 'reorder' ] ) ) |
|
1287 | $this->fields[ 'reorder' ] = $this->setup_fields( $this->fields[ 'reorder' ], 'reorder' ); |
|
1288 | else |
|
1289 | $this->fields[ 'reorder' ] = $fields; |
|
1290 | } |
|
1291 | } |
|
1292 | return $this->do_hook( 'setup_fields', $fields, $which, $init ); |
|
1293 | } |