Problem/motivation:
I have the requirement of showing different text on the enter password page per content type.
Tokens are very nice, but they don't help in this use case. Currently this is only a global setting, and I think it would be good to add it to the content type settings.
I don't know if anybody needs any of the other fields also:
- Password page title
- Password page general information (is this even needed?)
- Password field label
Perhaps a more complete configuration reorganization is needed in a 7.x-2.x or 8.x branch, whichever is next :)
Comments
Comment #1
digitgopher commentedComment #2
grimreaperThanks for your patch. Here is my review.
I think it should be if ($description != '') {
Because if the variable does not exist, it will be instanciated to ''.
Should it be $form['protected_node']['protected_node_description_' . $form['#node_type']->type]?
When it will be ok I will apply the patch to test.
@Izus: do you think we need an automated test for this new feature? I am in favor of an automated test just in case.
Comment #3
digitgopher commentedGrimreaper,
Thanks for the review.
As for 1), do you want to change the existing checks as well?
As for 2), what is the reason you suggest this? I was following the convention I saw there, but may have missed something else.
I didn't change these yet, I will let you do that or explain more. However I did make tests :)
Comment #4
digitgopher commentedComment #7
grimreaperHello,
Forget about my previous review, it was bad with the web browser.
I made some adjustments for example the test show an extra space added when showing the node title.
This is now merged. Thanks.
Comment #8
grimreaperI just remember that the documentation needs to be updated: https://www.drupal.org/node/2176651
Comment #9
digitgopher commentedUpdated the Per Node Type Settings documentation page and the Global Settings documentation page for this feature.
Comment #10
grimreaperGood for me. Thanks.