我想将新项目添加到现有表单中。我有表单的 ID,我知道我需要使用钩子 form_alter,但不知道如何添加它。
function modulename_form_alter(&$form, $form_state, $form_id) {
switch ($form_id) {
case 'form id goes here':
// Need to do something here....
break;
}
}