Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This would allow the characteristics of this link to be changed by modules, themes, etc. based on more specific requirements.
This will also help:
#347698: change 'Join' link to 'Login to join'
#215276: Adding link to OG Block Menu when Group is in Moderation
maybe #1372346: Customized member invitation based on user type
Comment | File | Size | Author |
---|---|---|---|
#6 | og-theme_subscribe_link-1432016-4.patch | 2.83 KB | goron |
#3 | og-theme_subscribe_link-1432016-3.patch | 3.2 KB | goron |
#1 | og-theme_subscribe_link-1432016.patch | 3.16 KB | goron |
Comments
Comment #1
goron CreditAttribution: goron commentedHere's a patch
Comment #2
Grayside CreditAttribution: Grayside commentedFirst line of function documentation should always be a one-liner description of what the function does, followed by an empty line, followed by additional text as needed, then parameters. @deprecated should be placed below the @param/@return items.
Comment #3
goron CreditAttribution: goron commentedMoved @deprecated.
Comment #4
goron CreditAttribution: goron commentedComment #5
Grayside CreditAttribution: Grayside commentedDon't know how I missed it.
og_subscribe_link() should simply be a wrapper around theme('og_subscribe_link').
Comment #6
goron CreditAttribution: goron commentedHa. Oops.
Updated patch.
Comment #7
Grayside CreditAttribution: Grayside commentedWant to give this a little time to attract a second opinion.
Comment #8
hefox CreditAttribution: hefox commentedProbably
This function is deprecated in favor of theme_og_subscribe_link() => This function is deprecated in favor of theme('og_subscribe_link'
As don't want people calling theme_og_subscribe_link directly.
Comment #9
Grayside CreditAttribution: Grayside commentedGood point.
Comment #10
Grayside CreditAttribution: Grayside commentedhttp://drupalcode.org/project/og.git/commit/739ed8a
Committed with slight change.
The @deprecated tag marks that the original og_subscribe_link() function is not advised, and will be dropped after a couple releases.