function _user_relationships_default_messages in User Relationships 7
Returns a nested array of default messages. When adding any keys, add translations in _user_relationships_default_message_key_translations().
3 calls to _user_relationships_default_messages()
- user_relationships_admin_settings in ./
user_relationships.admin.inc - Main settings
- user_relationships_get_message in ./
user_relationships.module - Public API for getting the set or default message
- user_relationships_uninstall in ./
user_relationships.install - Implements hook_uninstall().
File
- ./
user_relationships.module, line 993 - User Relationships API. Module shell.
Code
function _user_relationships_default_messages($replacements) {
return array(
'informational' => array(
'submitted' => t('Your @rel_name request has been sent to !requestee.', $replacements),
'accepted' => t("!requester's @rel_name request has been approved.", $replacements),
'disapproved' => t("!requester has declined your @rel_name request.", $replacements),
'disapprove' => t("!requester's @rel_name request has been declined.", $replacements),
'cancel' => t('Your @rel_name request to !requestee has been canceled.', $replacements),
'default' => t('No action has been taken.'),
'removed' => t('The @rel_name relationship between !requester and !requestee has been deleted.', $replacements),
'pending' => t('!requester has requested to be your @rel_name. View your !pending_relationship_requests to approve or decline.', $replacements),
'pre_approved' => t("You are !requestee's newest @rel_name.", $replacements),
),
'error' => array(
'too_many_relationships' => t('You are not permitted to create any more relationships with this user.'),
'existing_request' => t('There is already an earlier @rel_name request sent to !requestee.', $replacements),
'existing_relationship' => t('There is already an existing @rel_name relationship with !requestee.', $replacements),
'not_accepting_requests' => t('This user does not accept relationship requests.'),
'self_request' => t('You cannot create a relationship with yourself.'),
'non_existent_user' => t('This user does not exist.'),
'non_existent_type' => t('This relationship type does not exist.'),
'unknown_error' => t('An error has occurred. Please contact the site administrator.'),
'relationship_type_not_set' => t('Please choose the type of relationship.'),
'relationship_type_not_allowed' => t('You may not create @rel_name relationships.', $replacements),
),
);
}