Hi

I have a custom content type that I would like to change the node creation title for - it's sort of like a mini assessment and rather than it saying "Create Anger Test" I would like it to say "Take Free Anger Test". I can do this with string overrides and also via settings.php but I only want it to be changed on this one content type rater than all my content types. I've searched a fair bit within the drupal forums and Google but I can't seem to find anything to help me.

Any help would be much appreciated.

Comments

dpovshed’s picture

Hi there,

no clean and nice solution at a glance for this.

A bunch if recipes are here
http://stackoverflow.com/questions/1392573/changing-the-node-creation-ti...

Personally I would create a tiny module to achieve the desired result.

jeremymcminn’s picture

Hi denikin

Yes I ended up doing that - this is the code I ended up using for it.

<?php

function yourmodule_form_alter(&$form, &$form_state, $form_id) {    
    if ('yourcontenttype_node_form' == $form_id) {
        // Change title of Content Type node creation page
        drupal_set_title(t('Your New Ttitle'));
        $form['buttons']['submit']['#value'] = "Your Submit Button Text";        
    }
    return $form;
}
dpovshed’s picture

Status: Active » Closed (fixed)

Hi jonnyfiasco,

great, thanks for sharing it here.

Let us close the issue then, OK?