Exemplo n.º 1
0
 public function onEndEmailFormData(Action $action, Profile $scoped)
 {
     $emailfave = $scoped->getConfigPref('email', 'notify_fave') ? 1 : 0;
     $action->elementStart('li');
     $action->checkbox('email-notify_fave', _('Send me email when someone adds my notice as a favorite.'), $emailfave);
     $action->elementEnd('li');
     return true;
 }
Exemplo n.º 2
0
 /**
  * Add a checkbox to turn off email summaries
  * 
  * @param Action $action Action being executed (emailsettings)
  * 
  * @return boolean hook value
  */
 function onEndEmailFormData($action)
 {
     $user = common_current_user();
     $action->elementStart('li');
     $action->checkbox('emailsummary', _('Send me a periodic summary of updates from my network.'), Email_summary_status::getSendSummary($user->id));
     $action->elementEnd('li');
     return true;
 }
Exemplo n.º 3
0
 /**
  * Show a checkbox on the profile form to ask whether to follow everyone
  *
  * @param Action $action The action being executed
  *
  * @return boolean hook value
  */
 function onEndProfileFormData($action)
 {
     $user = common_current_user();
     $action->elementStart('li');
     // TRANS: Checkbox label in form for profile settings.
     $action->checkbox('followeveryone', _('Follow everyone'), $action->arg('followeveryone') ? $action->arg('followeveryone') : User_followeveryone_prefs::followEveryone($user->id));
     $action->elementEnd('li');
     return true;
 }
 /**
  * Add a checkbox to turn off email summaries
  *
  * @param Action $action Action being executed (emailsettings)
  * @param Profile $scoped Profile for whom settings are configured (current user)
  *
  * @return boolean hook value
  */
 public function onEndEmailFormData(Action $action, Profile $scoped)
 {
     $action->elementStart('li');
     $action->checkbox('emailsummary', _m('Send me a periodic summary of updates from my network'), Email_summary_status::getSendSummary($scoped->id));
     $action->elementEnd('li');
     return true;
 }