| 1 | <?php |
||
| 8 | class GravityView_Field_Calculation extends GravityView_Field { |
||
| 9 | |||
| 10 | var $name = 'calculation'; |
||
| 11 | |||
| 12 | var $is_searchable = false; |
||
| 13 | |||
| 14 | var $group = 'pricing'; |
||
| 15 | |||
| 16 | var $_gf_field_class_name = 'GF_Field_Calculation'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * GravityView_Field_Calculation constructor. |
||
| 20 | */ |
||
| 21 | public function __construct() { |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Don't show the Calculation field in field picker |
||
| 30 | * @param array $field_types Array of field types |
||
| 31 | * @param string $context |
||
| 32 | * |
||
| 33 | * @return array Field types with calculation added, if not Edit Entry context |
||
| 34 | */ |
||
| 35 | public function blacklist_field_types( $field_types = array(), $context = '' ) { |
||
| 44 | } |
||
| 45 | |||
| 47 |