Landing Page Based on Role? Use Case - I've got several Dashboards (some custom View pages) in the site. Depending on the Role associated with a User, I want to direct them to thier respective Dashboard.

So an Editor would go to the Editor Dashboard, a Contributor would go to a Contributor Dashboard, etc. after they login.

(I'm using the OpenPublic distro)
You can redirect user after checking their role(by using below PHP snippet)

&lt;?php $GLOBALS['user']-&gt;roles; ?&gt;


Your code will look something like this:

&lt;?php 
if($GLOBALS['user']-&gt;roles == 'editor') {
  drupal_goto("dashboard_editor"));
}
?&gt;


Note: this will work only when a user has single role associated with him.