You are here

function user_relationships_default_messages in User Relationships 5

Same name and namespace in other branches
  1. 5.2 user_relationships.module \user_relationships_default_messages()

Returns a nested array of default messages

2 calls to user_relationships_default_messages()
user_relationships_get_message in ./user_relationships_api.inc
Public API for getting the set or default message
user_relationships_settings in ./user_relationships_forms.inc
Main settings

File

./user_relationships.module, line 205

Code

function user_relationships_default_messages() {
  return array(
    'informational' => array(
      'submitted' => 'Your request to be a %relationship_name of %requestee has been submitted.',
      'accepted' => 'You are now a %relationship_name of !requestee.',
      'denied' => "!requester's request to be a %relationship_name of !requestee has been removed.",
      'default' => 'No action has been taken.',
      'removed' => '!requester is no longer a %relationship_name of !requestee.',
      'pending' => '!requester believes they are a %relationship_name of yours.  Please view your !pending_relationship_requests to approve them.',
    ),
    'error' => array(
      'too_many_relationships' => 'You already relate to this user in every possible way.',
      'existing_request' => 'You have already requested to be a %relationship_name of %requestee',
      'existing_relationship' => 'You are already a %relationship_name of %requestee',
      'not_accepting_requests' => 'This user is not accepting relationship requests.',
      'self_request' => 'You are not allowed to create a relationship to yourself.',
      'non_existant_user' => 'This user does not exist.',
    ),
  );
}