I have page has content type I need to save it to database, i added save button using hook_form_alter as following
function customization_form_alter(&$form, &$form_state, $form_id){
if($form_id == 'media_operator_node_form'){
$form['buttons']['submit']['#value'] = t('Save');
}
}
the problem is:
the save button once visit page is hidden but when scroll to down the button appear
what is the problem and how can i solve it so once visit the page i see the save button.
Drupal content types are saved to the database by default.
The code you have posted does not add a save button, it looks to me that it just sets the text on the button to save (which on a content type is the default value anyway).
It sounds like you may be getting confused between the node page and the node edit page but I’m not sure.
You will have to explain your problem a little more clearly.