Add "Message" option to profile options.
422487
public function ProfileController_BeforeProfileOptions_Handler($Sender, $Args) {
      if (!$Sender->EditMode && Gdn::Session()->IsValid() && Gdn::Session()->UserID != $Sender->User->UserID)
         $Sender->EventArguments['MemberOptions'][] = array(
            'Text' => Sprite('SpMessage').' '.T('Message'),
            'Url' => '/messages/add/'.$Sender->User->Name,
            'CssClass' => 'MessageUser'
         );
   }
157430
def add_notifications(myclass):
    
    for key, value in TEXTS.items():
        # custom notifications cannot be disabled
        if 'custom' in [key, value]:
            continue

        field_type = USER_SETTING[key]['type']

        if field_type == 'boolean':
            field = models.BooleanField(_(key), default=DEFAULT_BOOLEAN)
        elif field_type == 'distance':
            field = models.IntegerField(
                _(key),
                default=DEFAULT_DISTANCE,
                help_text=_('-1 (less than 0): disabled; 0: enabled for all;\
                            1 (less than 0): enabled for those in the specified distance range (km)')
            )
            field.geo_field = USER_SETTING[key]['geo_field']

        field.name = field.column = field.attname = key
        field.user_setting_type = field_type
        setattr(myclass, key, field)
        myclass.add_to_class(key, field)

    return myclass
19719
public static DialogOptions newOptions(final String message) {
        DialogOptions options = JavaScriptObject.createObject().cast();
        options.setMessage(message);
        return options;
    }
1062981
def addProfile(self, profile):
        
        if ( profile in self._profiles ):
            return
        
        self._profiles.append(profile)
        self._profileCombo.blockSignals(True)
        self._profileCombo.addItem(profile.name())
        self._profileCombo.setCurrentIndex(self._profileCombo.count()-1)
        self._profileCombo.blockSignals(False)
585077
async def _set_greeting_text(self):
        

        page = self.settings()

        if 'greeting' in page:
            await self._send_to_messenger_profile(page, {
                'greeting': page['greeting'],
            })

            logger.info('Greeting text set for page %s', page['page_id'])
1157557
def add_message(self, request, level, message_template,
                    message_context=None, extra_tags=''):
        
        if 'django.contrib.messages' in settings.INSTALLED_APPS:
            try:
                if message_context is None:
                    message_context = {}
                message = render_to_string(message_template,
                                           message_context).strip()
                if message:
                    messages.add_message(request, level, message,
                                         extra_tags=extra_tags)
            except TemplateDoesNotExist:
                pass
614395
def add_validation_message(self, message):
        
        if message.file not in self.messages:
            self.messages[message.file] = []

        self.messages[message.file].append(message)
1330824
def load(self, profile_args):
        
        for key, value in profile_args.items():
            self.add(key, value)
525000
private void setNotificationOptions(Context context,MFPPushNotificationOptions options) {

    if (this.appContext == null) {
      this.appContext = context.getApplicationContext();
    }
    this.options = options;
    Gson gson = new Gson();
    String json = gson.toJson(options);
    SharedPreferences sharedPreferences = appContext.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);
    MFPPushUtils.storeContentInSharedPreferences(sharedPreferences, MFPPush.PREFS_MESSAGES_OPTIONS, json);
  }
340367
def notice(self, client, message):
        """"""
        if client and message:
            messages = utils.split_message(message, self.config.max_length)
            for msg in messages:
                client.fwrite(':{c.srv} NOTICE {c.nick} :{msg}', msg=msg)
1252633
function applicableMessages(messages, options) {
  var length = messages.length
  var index = -1
  var result = []

  if (options.silent) {
    while (++index < length) {
      if (messages[index].fatal) {
        result.push(messages[index])
      }
    }
  } else {
    result = messages.concat()
  }

  return result
}
1202167
def warning(request, message, extra_tags='', fail_silently=False, async=False):
    """"""
    if ASYNC and async:
        messages.debug(_get_user(request), message)
    else:
        add_message(request, constants.WARNING, message, extra_tags=extra_tags,
                    fail_silently=fail_silently)
1176219
public void addStatusInfo(String message) {
        if (message == null) {
            return;
        }
        statusInfo.put(WebResponseConstant.MESSAGE_GLOBAL, message);
    }
726163
private static void addHeadersToMessage(SipServletMessage message, Map<String, String> customHeaders) {
         for (Map.Entry<String, String> entry: customHeaders.entrySet()) {
             String headerName = entry.getKey();
             String headerVal = entry.getValue();
             message.addHeader(headerName, headerVal);
         }
     }
998829
public function message($message, $options = null) {
		$options = $this->_mergeOptions($options);

		$this->set($message, $options);

		$this->_assertSessionStackSize($options);
	}
1140535
async def add_message(self, request):
        """"""
        session = await get_session(request)
        user_id = session.get('user_id')
        if not user_id:
            raise web.HTTPNotAuthorized()
        form = await request.post()

        if form.get('text'):
            user = await self.mongo.user.find_one(
                {'_id': ObjectId(session['user_id'])},
                {'email': 1, 'username': 1})

            await self.mongo.message.insert(
                {'author_id': ObjectId(user_id),
                 'email': user['email'],
                 'username': user['username'],
                 'text': form['text'],
                 'pub_date': datetime.datetime.utcnow()})
        return redirect(request, 'timeline')
1180293
function add_sticky_admin_message( $message, $id, $title = '', $type = 'success' ) {
            $this->_admin_notices->add_sticky( $message, $id, $title, $type );
        }