I allow registered users to create content of type X, so they can go to the /node/add/X page and fill in the form. However, I want to give this page a bespoke title, i.e. "Make an X" rather than "Create X". I have tried adding a string override in settings.php, and also tried with the string overrides module. However, neither of these worked.

What is the best way to do this? (I don't want to install another module if I can avoid it, I already have too many and this seems like a trivial issue).

1 Answer 1


You could do:

function MY_MODULE_NAME_form_alter(&$form, &$form_state, $form_id)
    if($form_id == 'myContentType_node_form') {
         drupal_set_title('Your custom title');     
  • So create a module just for this functionality? That seems a bit like overkill doesn't it?
    – James
    Jun 15, 2015 at 15:49
  • @James this could also be included in the template.php file of the theme, just replace MY_MODULE_NAME with the theme name
    – Geoff
    Jun 15, 2015 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.