/**
  * Sets the html_id to its default value, if none was specified in the constructor.
  * Calculation involves using the name and the parent's html id
  * return void
  */
 protected function _set_default_html_id_if_empty()
 {
     if (!$this->_html_id) {
         if ($this->_parent_section && $this->_parent_section instanceof EE_Form_Section_Proper) {
             $this->_html_id = $this->_parent_section->html_id() . '-' . $this->_prep_name_for_html_id($this->name());
         } else {
             $this->_html_id = $this->_prep_name_for_html_id($this->name());
         }
     }
 }
 /**
  * Does an action and hook onto the end of teh form
  * @param string $html
  * @return string
  */
 public function add_form_section_hooks_and_filters($html)
 {
     // replace dashes and spaces with underscores
     $hook_name = str_replace(array('-', ' '), '_', $this->_form_section->html_id());
     do_action('AHEE__Form_Section_Layout__' . $hook_name, $this->_form_section);
     $html = apply_filters('AFEE__Form_Section_Layout__' . $hook_name . '__html', $html, $this->_form_section);
     $html .= EEH_HTML::nl() . '<!-- AHEE__Form_Section_Layout__' . $hook_name . '__html -->';
     $html .= EEH_HTML::nl() . '<!-- AFEE__Form_Section_Layout__' . $hook_name . ' -->';
     return $html;
 }