Changing node/%/edit title I have created custom content type for upload the details. I have used hook_form_alter to set the node title as "Upload". When I edit the node in node/%/edit the title remains "Upload". I want the title to be "Edit" .How to do this?
Please try this:

function hook_form_alter(&amp;$form, &amp;$form_state, $form_id) {
   if($form_id == 'form-id') {
   if(arg(0) == 'node' &amp;&amp; arg(2) == 'edit'){
     drupal_set_title('Upload Edit');
    }
    else{
     drupal_set_title('Upload'); }

  }
}