How to use hook_form_alter for altering node forms.
Source code viewer
/** * Implements hook_form_alter(). */ // Replace HOOK with your module name, lower case and underscores instead of spaces. function HOOK_form_alter(&$form, &$form_state, $form_id) { // Replace node_machine_name with node machine name. if ($form_id == 'node_machine_name_node_form') { // Complete array structure of your content type form. // or use devel module pretty print. dpm($form); } }Programming Language: PHP