HUBSPOT_CREATECONTACT::load_options()
load_options
Return Return
(void)
Source Source
File: src/integrations/hubspot/actions/hubspot-createcontact.php
public function load_options() { return array( 'options_group' => array( $this->action_meta => array( Automator()->helpers->recipe->field->text( array( 'option_code' => 'HUBSPOTEMAIL', 'label' => esc_attr__( 'Email address', 'uncanny-automator' ), 'input_type' => 'text', 'default' => '', 'required' => true, ) ), array( 'option_code' => 'CUSTOM_FIELDS', 'input_type' => 'repeater', 'label' => __( 'Custom fields', 'uncanny-automator' ), 'description' => '', 'required' => false, 'fields' => array( array( 'option_code' => 'FIELD_NAME', 'label' => __( 'Field', 'uncanny-automator' ), 'input_type' => 'select', 'supports_tokens' => false, 'supports_custom_value' => false, 'required' => true, 'read_only' => false, 'options' => Automator()->helpers->recipe->hubspot->get_fields( array( 'email' ) ), ), Automator()->helpers->recipe->field->text_field( 'FIELD_VALUE', __( 'Value', 'uncanny-automator' ), true, 'text', '', false ), ), 'add_row_button' => __( 'Add field', 'uncanny-automator' ), 'remove_row_button' => __( 'Remove field', 'uncanny-automator' ), 'hide_actions' => false, ), array( 'option_code' => 'UPDATE', 'input_type' => 'checkbox', 'label' => __( 'If the contact already exists, update their info', 'uncanny-automator' ), 'description' => '', 'required' => false, 'default_value' => true, ), ), ), ); }
Expand full source code Collapse full source code View on Github