Way to remove the Override Title form option in Panel component config? I am making a Panel Component, in D7, and do not want to show the title. I can just not render out the title on the page - that's fine - but I'd also like to remove the form fields that allow you to enter in the title.



Would anyone know how to do this? I cannot find any info out there.
The function responsible for the overriding title:

/**
 * Add the default FAPI elements to the content type configuration form.
 */
function ctools_content_configure_form_defaults($form, &amp;$form_state) {
  $plugin = $form_state['plugin'];
  $subtype = $form_state['subtype'];
  $contexts = isset($form_state['contexts']) ? $form_state['contexts'] : NULL;
  $conf = $form_state['conf'];

  $add_submit = FALSE;
  if (!empty($subtype['required context']) &amp;&amp; is_array($contexts)) {
    $form['context'] = ctools_context_selector($contexts, $subtype['required context'], isset($conf['context']) ? $conf['context'] : array());
    $add_submit = TRUE;
  }

  ctools_include('dependent');

  // Unless we're not allowed to override the title on this content type, add this
  // gadget to all panes.
  if (empty($plugin['no title override']) &amp;&amp; empty($subtype['no title override'])) {
    $form['aligner_start'] = array(
      '#markup' =&gt; '&lt;div class="option-text-aligner clearfix"&gt;',
    );
    $form['override_title'] = array(
      '#type' =&gt; 'checkbox',
      '#default_value' =&gt; isset($conf['override_title']) ? $conf['override_title'] : '',
      '#title' =&gt; t('Override title'),
      '#id' =&gt; 'override-title-checkbox',
    );
    $form['override_title_text'] = array(
      '#type' =&gt; 'textfield',
      '#default_value' =&gt; isset($conf['override_title_text']) ? $conf['override_title_text'] : '',
      '#size' =&gt; 35,
      '#id' =&gt; 'override-title-textfield',
      '#dependency' =&gt; array('override-title-checkbox' =&gt; array(1)),
      '#dependency_type' =&gt; 'hidden',
    );
    $form['override_title_heading'] = array(
      '#type' =&gt; 'select',
      '#default_value' =&gt; isset($conf['override_title_heading']) ? $conf['override_title_heading'] : 'h2',
      '#options' =&gt; array(
        'h1' =&gt; t('h1'),
        'h2' =&gt; t('h2'),
        'h3' =&gt; t('h3'),
        'h4' =&gt; t('h4'),
        'h5' =&gt; t('h5'),
        'h6' =&gt; t('h6'),
        'div' =&gt; t('div'),
        'span' =&gt; t('span'),
      ),
      '#id' =&gt; 'override-title-heading',
      '#dependency' =&gt; array('override-title-checkbox' =&gt; array(1)),
      '#dependency_type' =&gt; 'hidden',
    );

    $form['aligner_stop'] = array(
      '#markup' =&gt; '&lt;/div&gt;',
    );
    if (is_array($contexts)) {
      $form['override_title_markup'] = array(
        '#prefix' =&gt; '&lt;div class="description"&gt;',
        '#suffix' =&gt; '&lt;/div&gt;',
        '#markup' =&gt; t('You may use %keywords from contexts, as well as %title to contain the original title.'),
      );
    }
    $add_submit = TRUE;
  }

  if ($add_submit) {
    // '#submit' is already set up due to the wizard.
    $form['#submit'][] = 'ctools_content_configure_form_defaults_submit';
  }
  return $form;
}


states on line 513: 


  // Unless we're not allowed to override the title on this content type, add this
  // gadget to all panes.


which means you could just add the following array members to the existing $plugin or $subtype:

  $plugin['no title override'] = TRUE;
  $subtype['no title override'] = TRUE;


and theoretically it should work.