drupal - How to perform Request destination in user page -


I / the user trying to redirect any user's efforts to log in.

To redirect code to the next login in my module:

  function ccmm_user ($ op, and $ edit, & amp; $ account, & amp; ; $ Category = null) {switch ($ op) {case 'login': $ _REQUEST ['destination'] = 'admin /'; break; }}  

It is working then I try with the case 'scene': but it is useless.

It seems as if you want the user never visit the user / user page, Be it or go there manually

In that case, you should do a simple check in the hook_int function like this:

  function ccmm_init () {if ($ _REQUEST ['q'] == '/ User ') {drupal_goto (' / admin '); // where ever you want to send them}}  

Of course there are so many checks you should do, and you want to use the module, do not worry it's only in 8k size Therefore, worry about adding another module in this case is not such a problem.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -