PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmFormMigrator.php +9 -7 6.36.8 View file →
@@ -242,9 +242,9 @@
242 242 $form['fields'] = array_merge( $form['fields'], $new_field['fields'] );
243 243 // set the new field_order as it would have changed
244 244 $field_order = $new_field['current_order'];
245 245 }
246 - }
246 + }//end foreach
247 247 }
248 248
249 249 protected function prepare_field( $field, &$new_field ) {
250 250 // customize this function
@@ -336,9 +336,9 @@
336 336 /**
337 337 * Add the new form to the database and return AJAX data.å
338 338 *
339 339 * @param array $form Form to import.
340 - * @param array $upgrade_omit No field alternative
340 + * @param array $upgrade_omit No field alternative.
341 341 */
342 342 protected function add_form( $form, $upgrade_omit = array() ) {
343 343
344 344 // Create empty form so we have an ID to work with.
@@ -392,9 +392,9 @@
392 392
393 393 /**
394 394 * @since 4.04.03
395 395 *
396 - * @param int $form_id
396 + * @param int $form_id
397 397 * @param array $form
398 398 */
399 399 protected function create_fields( $form_id, &$form ) {
400 400 foreach ( $form['fields'] as $key => $new_field ) {
@@ -416,9 +416,11 @@
416 416
417 417 /**
418 418 * @since 4.04.03
419 419 *
420 + * @param array $action
420 421 * @param array $form
422 + * @param int $form_id
421 423 */
422 424 protected function save_action( $action, $form, $form_id ) {
423 425 $action_control = FrmFormActionsController::get_form_actions( $action['type'] );
424 426 unset( $action['type'] );
@@ -444,10 +446,10 @@
444 446 * After a form has been successfully imported we track it, so that in the
445 447 * future we can alert users if they try to import a form that has already
446 448 * been imported.
447 449 *
448 - * @param int $source_id Imported plugin form ID
449 - * @param int $new_form_id Formidable form ID
450 + * @param int $source_id Imported plugin form ID.
451 + * @param int $new_form_id Formidable form ID.
450 452 */
451 453 protected function track_import( $source_id, $new_form_id ) {
452 454
453 455 $imported = $this->get_tracked_import();
@@ -464,9 +466,9 @@
464 466 return get_option( $this->tracking, array() );
465 467 }
466 468
467 469 /**
468 - * @param int $source_id Imported plugin form ID
470 + * @param int $source_id Imported plugin form ID.
469 471 *
470 472 * @return int the ID of the created form or 0
471 473 */
472 474 private function is_imported( $source_id ) {
@@ -518,9 +520,9 @@
518 520 /**
519 521 * Replace 3rd-party form provider tags/shortcodes with our own Tags.
520 522 *
521 523 * @param string $string String to process the smart tag in.
522 - * @param array $fields List of fields for the form.
524 + * @param array $fields List of fields for the form.
523 525 *
524 526 * @return string
525 527 */
526 528 protected function replace_smart_tags( $string, $fields ) {