Module name: OG Configurable Details Block (og_details)
http://drupal.org/sandbox/madmatter23/1225874
This module creates a more configurable alternative to the default OG Details block by allowing you to:
- Limit create links by integrating w/ OG Audience By Type
- Hide invite link
- Hide member count link
- Hide group manager link
- Hide Join & My Membership links
This other OG Group Posting modules do not modify this block. Namely, Content Type Administration by Organic Group and OG Audience By Type.
Development
-----------
Rather than creating an admin setting page and simply using hook_og_links_alter() to unset links, I chose to create an alternate OG Details block. This will allow new links and content to be added that may be out of the scope of OG core.
Intended for 6.x with possible 7.x release.
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedComment #2
klausi* README.TXT should be README.txt, see http://drupal.org/node/318#naming
* Remove all old CVS $Id$ tags, not needed anymore
* why do you need hook_enable()? you want to set the module weight once on installation. If the module is disabled and enabled again the weight is still there and does not need to updated again.
* "Implementation of hook_block()." Between doc block and function name should be no extra line. Also elsewhere.
* module: @file doc block is missing, see http://drupal.org/node/1354#files
* "//we only have one block" Comments should have a space after '//', should start upper cased and should end with a "."
* Comments should not exceed 80 characters.
Comment #3
grasmash CreditAttribution: grasmash commentedThank you for the noting these changes. I've corrected the errors that you listed. Please let me know if there is anything more that should be done.
Comment #4
klausiThose issues are quite minor, so I think your module is nearly ready.
Comment #5
grasmash CreditAttribution: grasmash commentedThanks for the reply!
Sorry, forgot to 'git add' the new README.txt file.
Comment #6
grasmash CreditAttribution: grasmash commentedOk, I've added the README.txt file and made the formatting changes that you mentioned.
I've also created a new git branch '6.x-1.x' and merged it with the master branch so that they're both up to date. Hope I understood the instructions right. Please let me know if you'd like me to set it up differently.
Thanks!
Comment #7
klausiminor things:
RTBC for me. Now while we are waiting for the access grants to create full projects would you be so kind to do a review of the other applications pending? Just pick one from this list: http://drupal.org/project/issues/projectapplications?status=8
Comment #8
grasmash CreditAttribution: grasmash commentedThanks, I've made those small changes and done a bit of module review to boot!
Comment #9
gregglesThanks for your contribution, madmatter! Welcome to the community of project contributors on drupal.org.
I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.
Thanks, also, for your patience with the review process AND for doing a review! As you know, anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to continue working in that process and join the group of reviewers.
As you continue to work on your module, keep in minde: Commit messages - providing history and credit and Release naming conventions.
Comment #11
apaderno