/**
  * Get the form options and allow child widgets to modify that form.
  *
  * @param bool|SiteOrigin_Widget $parent
  *
  * @return mixed
  */
 function form_options($parent = false)
 {
     $form_options = $this->modify_form($this->form_options);
     if (!empty($parent)) {
         $form_options = $parent->modify_child_widget_form($form_options, $this);
     }
     // Give other plugins a way to modify this form.
     $form_options = apply_filters('siteorigin_widgets_form_options', $form_options, $this);
     $form_options = apply_filters('siteorigin_widgets_form_options_' . $this->id_base, $form_options, $this);
     return $form_options;
 }
 /**
  * Get the main form options and allow child widgets to modify that form.
  *
  * @param bool|SiteOrigin_Widget $parent
  *
  * @return mixed
  */
 function form_options($parent = false)
 {
     if (empty($this->form_options)) {
         // If the widget doesn't have form_options defined from the constructor, then it might be defining them in the get_widget_form function
         $this->form_options = $this->get_widget_form();
     }
     $form_options = $this->modify_form($this->form_options);
     if (!empty($parent)) {
         $form_options = $parent->modify_child_widget_form($form_options, $this);
     }
     // Give other plugins a way to modify this form.
     $form_options = apply_filters('siteorigin_widgets_form_options', $form_options, $this);
     $form_options = apply_filters('siteorigin_widgets_form_options_' . $this->id_base, $form_options, $this);
     return $form_options;
 }