Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5229

Ability to override error messages

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.1
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Lots of error messages are set by CiviCRM by dong stuff like:

      $e =& CRM_Core_Error::singleton( );
      $e->push( 9001, 0, null, 'We were unable to process your payment at this time. Please try again later.'); <-- This one is inside a payment processor.

      for every message, there is an error code (9001 in this case). Assuming every error has a distinct code, there should be an easy way for people to override these error messages - perhaps a hook_civicrm_errorMessage() or something like that.

      Currently, the only way (that I can find) of overriding these messages is to hack up the core code (well, use the Custom PHP directory).

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mrfelton Tom Kirkpatrick
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: