Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
The checkbox is allways disabled.
Reason:
if($account != $user) {
$form['message_subscribe_email']['#disabled'] = TRUE;
}
is always true, even when visiting the own profile:
Solution:
if($account->uid != $user->uid) {
$form['message_subscribe_email']['#disabled'] = TRUE;
}
does the job
Comment | File | Size | Author |
---|---|---|---|
notification.jpg | 28.31 KB | slowflyer | |
commons_follow_ui2.patch | 716 bytes | slowflyer |
Comments
Comment #1
slowflyer CreditAttribution: slowflyer commentedComment #2
japerryYup. thats simple, fixed.
http://drupalcode.org/project/commons.git/commit/d51a3cc