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 -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -