Drupal - rules - if URL is present -
ive setup following rule in drupal:
not condition - logged in user has profile created
do condition - redirect user profile creation page
but want rule run, if following present in url.
user?destination=og%2fsubscribe%2f67 ( forwards users group after register, o allow reqest join)
the reason wanting this, because have logintoboggan setup, forwards new user specific page, after registration, takes them through setup. dont want users have been asked join group, follow same procudure, why have setup rule. unfortunatelly rule overrides logintoboggan.
which why want somehow tell rules module run rule, when "user?destination=og" present in url
any appreciated
add condition using custom php statement.
return arg(0) == "user" && $_get['destination'] == "og/subscribe/67';
if want check whether og in destination, modify
return arg(0) == "user" && stripos($_get['destination'], "og") !== false;
Comments
Post a Comment