You are here

function _user_relationships_ui_default_messages in User Relationships 6

Same name and namespace in other branches
  1. 5.3 user_relationships_ui/user_relationships_ui.module \_user_relationships_ui_default_messages()

Returns a nested array of default messages. When adding any keys, add translations below in _user_relationships_ui_default_message_key_translations()

3 calls to _user_relationships_ui_default_messages()
user_relationships_ui_get_message in user_relationships_ui/user_relationships_ui.module
Public API for getting the set or default message
user_relationships_ui_settings in user_relationships_ui/user_relationships_ui.admin.inc
Main settings
user_relationships_ui_uninstall in user_relationships_ui/user_relationships_ui.install
Implementation of hook_uninstall()

File

user_relationships_ui/user_relationships_ui.module, line 78
UI components of user_relationships @author Jeff Smick (creator) @author Alex Karshakevich (maintainer) http://drupal.org/user/183217 @author Darren Ferguson (contributor) http://drupal.org/user/70179

Code

function _user_relationships_ui_default_messages($replacements) {
  return array(
    'informational' => array(
      'submitted' => t('Your %relationship_name request has been sent to !requestee.', $replacements),
      'accepted' => t("!requester's %relationship_name request has been approved.", $replacements),
      'disapproved' => t("!requester has declined your %relationship_name request.", $replacements),
      'disapprove' => t("!requester's %relationship_name request has been declined.", $replacements),
      'cancel' => t('Your %relationship_name request to !requestee has been canceled.', $replacements),
      'default' => t('No action has been taken.'),
      'removed' => t('The %relationship_name relationship of !requester to !requestee has been deleted.', $replacements),
      'pending' => t('!requester has requested to be your %relationship_name.  Please view your !pending_relationship_requests to approve them.', $replacements),
      'pre_approved' => t("You are !requestee's newest %relationship_name.", $replacements),
    ),
    'error' => array(
      'too_many_relationships' => t('You may not create any more relationships to this user.'),
      'existing_request' => t('There is already an earlier %relationship_name request sent to !requestee.', $replacements),
      'existing_relationship' => t('There is already an existing %relationship_name relationship with !requestee.', $replacements),
      'not_accepting_requests' => t('This user does not accept relationship requests.'),
      'self_request' => t('You may not create a relationship to 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 %relationship_name relationships.', $replacements),
    ),
  );
}