Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am building a site which has Domain Access module.
By default, when you turn it on for content type, you get an extra field in content type for selecting the domain on which certain node should be shown.
I'm trying to do the same functionality for Block types. I started doing this by myself, but I'm not so good in writing modules to finish the job.
Anyone else had the same problem and would like to help me out?
Comments
Comment #1
indytechcook CreditAttribution: indytechcook commentedThe easiest way to add functionality to all blocks is by altering the bean form then invoking hook_bean_submit($form, $form_state).
A module to add domain functionality "bean_domain" would be a great idea.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedSorry to bump this old issue but has anyone had any luck on this? korius_bk, I'd like to see what you started if possible before rolling my own.
Comment #3
boshtian CreditAttribution: boshtian commentedNo, I haven't started with anything at that time. The project I needed that for was on a very short timeline, so we didn't decide to go for that.
But I still think something like this would be useful, because I will soon be doing another project with Domain Access and I use Bean very often lately, so this two should be working together.
If you're interested, we can start working on it or if you already started, I can help you.
Comment #4
knalstaaf CreditAttribution: knalstaaf commentedI'd surely welcome it since the Bean support by Domain Access Entity is quite poor to say the least.