How can i add a vertical tab to the content type manage form page?

I want to add a vertical tab that has a form like the ones it currently has. For example: it has menu settings, display settings, etc. I want to add a tab that ties a theme to a content type. Can you someone help me out?


  • not sure, but it has a form template file, which you can edit it, in your admin theme, or you can define a custom template for that in template.php Commented Jul 2, 2013 at 5:13

3 Answers 3


Try this. Or read about hook_form_FORM_ID_alter()

function mymodule_form_node_type_form_alter(&$form, &$form_state) {
  $default_value =TRUE;// auto_nodetitle_get_setting($form['#node_type']->type);

  $type = $form['#node_type'];
  $form['mymodule'] = array(
    '#type' => 'fieldset',
    '#title' => t('mymodule'),
    '#weight' => 0,
    '#collapsible' => TRUE,
    '#collapsed' => false,
    '#group' => 'additional_settings',
    '#attached' => array(
      'js' => array(drupal_get_path('module', 'menu') . '/menu.admin.js'),


You can simply add vertical tabs into content type just using Field Group module.

Field Group:

Fieldgroup will, as the name implies, group fields together. All fieldable entities will have the possibility to add groups to wrap their fields together. Fieldgroup comes with default HTML wrappers like vertical tabs, horizontal tabs, accordions, fieldsets or div wrappers.

The field group project is a follow-up on the field group module in CCK. The release will only exist for Drupal 7 release and higher, so since the existence of the Fields API in core. By moving field group to a separate module, this may open some new perspectives.


additional_settings is the magic keyword. Search https://www.drupal.org/project/examples for it and you'll get at least two good examples:

First in vertcial_tabs_example.module for the basic setup.

Second in nodeapi_example.module and nodeapi_example.install when it comes to saving variables and working with them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.