If for some reason you need to create many login destination rules, there is currently no way to set defaults for new rules. Many rules are needed e.g. if there are multiple registration questionnaires per role. Also currently the new rule always is inserted by default below old rules when the rules have the same weight. Because the delta for the weight selection is always the default 10, after 20 rules it might not be possible to get a new rule on top of the list - at least without changing the weight of some other rule(s).

The attached patch adds the possibility to set many default values for new rules, such as destinations and pages, in the Settings tab. There is also a default weight selection, which makes it possible to make new rules to always come to the top (or bottom) of the list.

Hope this is of some use to someone.

CommentFileSizeAuthor
add_default_rule_values.patch8.17 KBttiurani
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mithy’s picture

Hi, thank you for the patch, but could you please first explain what problem are you trying to solve ?

ttiurani’s picture

Issue summary: View changes

Added a motivation chapter for the patch.

ttiurani’s picture

Issue summary: View changes

Fixed typos with first chapter.

ttiurani’s picture

Hi, sorry about the short description: I was in a hurry and wanted to send my changes just in case someone was interested.

I will leave it up to the maintainers to decide if this is worth while feature.

Edit. After some consideration - and reading what I originally wrote as the explanation to this and seeing the complexities - I decided I would not use Login Destination but instead work with URL prefixis such as "&destination=[questionnaire]" in my invite message to get the new user to land in the questionnaire after registering or logging in.

ttiurani’s picture

Issue summary: View changes

Small clarification.

ddrozdik’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)