Here is the code for creating a new Tab in the settings panel on “Add article” node.
But it is not displaying.. what could be the errors ?
function mltag_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'article_node_form') {
drupal_set_message('Editing a node');
$form['mltag'] = array(
'#type' => 'fieldset',
'#title' => t('MLTag settings'),
'#access' => TRUE,
'#collapsible' => TRUE,
'#group' => 'additional_settings',
//'#attached' => array(
// 'js' => array(drupal_get_path('module', 'autordf').'/autordf.js'),
//),
'#tree' => TRUE,
'#weight' => -2,
'#attributes' => array('class' => array('mltag-settings')),
);
$form['mltag']['enabled'] = array(
'#type' => 'checkbox',
'#title' => t('Generate tags use Mltag'),
//'#default_value' => (empty($form['nid']['#value'])),
);
}
}