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 have required sent direct message in a popup[Same as attached screen] . How it's configured. When i have clicked on the sent message button it will be redirected to the new page . Please some one help it. My client has urgent requirement.
Comment | File | Size | Author |
---|---|---|---|
#7 | commons_trusted_contacts-private_message_in_popup-2108789-7.patch | 7.87 KB | japerry |
Screenshot_2.png | 135.58 KB | rinkiprasad |
Comments
Comment #1
ezra-g CreditAttribution: ezra-g commentedWhat you're requesting is a feature request. Updating the project components. You can help this feature happen by filing a patch.
I've updated the meta-data for this issue to be more accurate. I encourage you to take a moment to read the documentation on getting the most from the issue queue.
Comment #2
rinkiprasad CreditAttribution: rinkiprasad commentedI am new with drupal. Kindly provide us the module name or settings details which helps me for open private message in a popup.
Comment #3
ezra-g CreditAttribution: ezra-g commentedTo reiterate on #1: That functionality doesn't currently exist in Drupal Commons and would need to be added through via a patch to the source code.
Comment #4
japerryProbably the most light-weight way to do this is with the modal forms module. But it will require code, as Ezra said. Modal forms gives you an API to develop your own module which would bring a popup upon clicking.
https://drupal.org/project/modal_forms
I do like the feature idea!
Comment #5
stewart.adam CreditAttribution: stewart.adam commentedAttached is a quick patch that adds support for modal_forms. We may want to adjust the URLs (particularly if there's going to be more than just a 'message' action in the future) but this should do for now.
Comment #6
ezra-g CreditAttribution: ezra-g commentedThanks for the patch! Marking as "needs review."
Comment #7
japerryI've made some changes to the original patch, which was lacking permissions, theming, and a few other things. I think we're about production ready for this, but would want another skimming over the review.
Comment #8
Devin Carlson CreditAttribution: Devin Carlson commentedThe Modal forms module adds support for opening common forms in a ctools modal. I think adding it here is outside of the scope of this issue.
hook_init() and drupal_add_* made Devin sad. :(
The JavaScript should be #attached to whatever render array is responsible for triggering the modal. If it can be triggered on any page then it can be added to the page in hook_page_build().
Incorrect docblock (probably just a copy+paste error).
Could probably be replaced by ctools_modal_text_button().