| @@ -72,9 +72,8 @@ | ||
| 72 | 72 | 'googlespreadsheet' => 'FrmDefGoogleSpreadsheetAction', |
| 73 | 73 | ); |
| 74 | 74 | |
| 75 | 75 | $action_classes = apply_filters( 'frm_registered_form_actions', $action_classes ); |
| 76 | - $action_classes = self::maybe_unset_highrise( $action_classes ); | |
| 77 | 76 | |
| 78 | 77 | include_once FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/email_action.php'; |
| 79 | 78 | include_once FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/default_actions.php'; |
| 80 | 79 | |
| @@ -83,23 +82,8 @@ | ||
| 83 | 82 | } |
| 84 | 83 | } |
| 85 | 84 | |
| 86 | 85 | /** |
| 87 | - * Remove the Highrise action if it is not registered. | |
| 88 | - * | |
| 89 | - * @since 6.23 | |
| 90 | - * | |
| 91 | - * @param array $action_classes | |
| 92 | - * @return array | |
| 93 | - */ | |
| 94 | - private static function maybe_unset_highrise( $action_classes ) { | |
| 95 | - if ( 'FrmDefHighriseAction' === ( $action_classes['highrise'] ?? '' ) ) { | |
| 96 | - unset( $action_classes['highrise'] ); | |
| 97 | - } | |
| 98 | - return $action_classes; | |
| 99 | - } | |
| 100 | - | |
| 101 | - /** | |
| 102 | 86 | * @since 4.0 |
| 103 | 87 | * |
| 104 | 88 | * @param array $values |
| 105 | 89 | */ |
| @@ -183,41 +167,22 @@ | ||
| 183 | 167 | 'constantcontact', |
| 184 | 168 | 'getresponse', |
| 185 | 169 | 'aweber', |
| 186 | 170 | 'mailpoet', |
| 187 | - 'convertkit', | |
| 188 | 171 | ), |
| 189 | 172 | ), |
| 190 | 173 | 'crm' => array( |
| 191 | 174 | 'name' => __( 'CRM', 'formidable' ), |
| 192 | 175 | 'icon' => 'frm_icon_font frm_address_card_icon', |
| 193 | - 'actions' => self::get_crm_actions(), | |
| 176 | + 'actions' => array( | |
| 177 | + 'salesforce', | |
| 178 | + 'hubspot', | |
| 179 | + 'highrise', | |
| 180 | + ), | |
| 194 | 181 | ), |
| 195 | 182 | ); |
| 196 | 183 | |
| 197 | 184 | return apply_filters( 'frm_action_groups', $groups ); |
| 198 | - } | |
| 199 | - | |
| 200 | - /** | |
| 201 | - * Get the actions to include in the CRM section. | |
| 202 | - * | |
| 203 | - * @since 6.23 | |
| 204 | - * | |
| 205 | - * @return array | |
| 206 | - */ | |
| 207 | - private static function get_crm_actions() { | |
| 208 | - $crm_actions = array( | |
| 209 | - 'salesforce', | |
| 210 | - 'hubspot', | |
| 211 | - ); | |
| 212 | - | |
| 213 | - // Only include Highrise when the add-on is active. | |
| 214 | - // This is because Highrise is deprecated. We don't want to show it in Lite. | |
| 215 | - if ( class_exists( 'FrmHrsSettings' ) ) { | |
| 216 | - $crm_actions[] = 'highrise'; | |
| 217 | - } | |
| 218 | - | |
| 219 | - return $crm_actions; | |
| 220 | 185 | } |
| 221 | 186 | |
| 222 | 187 | /** |
| 223 | 188 | * Get the number of currently active form actions. |