Hide other domains' menus from node edit form on a Drupal site using domain access -


I'm in the process of making some improvements to a live Drupal site that is using the Domain Aces module microsites I am trying to find a way to ban the menu from which the user can post the content from the node editing screen. One of the users should be able to post content in the menu associated with that domain.

Is there any easy way to get this? I think I can use a few hooks, but till now I am unable to recognize them. I do not want to get it and to install the module and want to be able to add some code to the existing site to replace the forms. This site is already struggling with a large number of modules that we had already installed.

For the module, you need to set certain permissions in user management:

To enable this feature, you must edit the 'Edit Domain Name' and (Optionally) 'Delete Domain Names' for certain roles then assign it as domain editors Specify individual user accounts for specific domains.

With my experience several months ago, you can check the global $ user object and find that the domain user should have access. After this, You can choose from the box that you do not want to see. However, with Drupal forever, it is better to write code to someone else - so if the domain module provides this functionality, use it!


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -