0

I have created two content types "A" and "B".
I have included content type "B" in content type "A".
So when I am adding a content of type "A" that time it shows me a button "Add new node".
I want to change this label with another label.
Also when I click on this button it display form with fields of content type "B". This also shows a button with label "Create Node" and a title "ADD NEW NODE". I also want to replace with another string.
I have used form_alter() hook.

Can any one guide me how can do this?

1 Answer 1

0

I suggest you take a small form_alter sample module code and start changing in it. Pl also see this video.

You can also do it easily using String Overrides module.

1
  • I am new beginner in drupal Thank you for your reply but "String Overrides" not works for me. I have added a content type into a content type. I have checked after removing all cache. Commented Sep 16, 2013 at 8:36

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.