HUBSPOT_REMOVEUSERFROMLIST::define_action()

Define and register the action by pushing it into the Automator object.


Source

File: src/integrations/hubspot/actions/hubspot-removeuserfromlist.php

	public function define_action() {
		$action = array(
			'author'             => Automator()->get_author_name( $this->action_code ),
			'support_link'       => Automator()->get_author_support_link( $this->action_code, 'integration/hubspot/' ),
			'integration'        => self::$integration,
			'code'               => $this->action_code,
			'sentence'           => sprintf( __( "Remove the user's HubSpot contact from {{a static list:%1\$s}}", 'uncanny-automator' ), $this->action_meta ),
			'select_option_name' => __( "Remove the user's HubSpot contact from {{a static list}}", 'uncanny-automator' ),
			'priority'           => 10,
			'accepted_args'      => 1,
			'requires_user'      => true,
			'execution_function' => array( $this, 'remove_contact_from_list' ),
			'options_callback'   => array( $this, 'load_options' ),
		);
		Automator()->register->action( $action );
	}