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

Links added to contact summary with hook_civicrm_links() appear different from native links

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.3
    • Fix Version/s: 3.4.5
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      If I use hook_civicrm_links() to add links to the Actions list in the Contact Summary page, these links appear different from the existing links in the list. Specifically, they're added as un-wrapped <a> elements after the <ul> of existing links, rather than wrapped in <li></li> within that list. This means they're aligned and colored differently, and behave differently on hover. (See attached screenshot).

      This patch wraps such links into the existing <ul>, so they're styled like other links in the list.

        Attachments

        1. links.jpg
          18 kB
          Allen Shaw
        2. links.patch
          0.9 kB
          Allen Shaw
        3. links.patch
          0.8 kB
          Allen Shaw

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              allenshaw Allen Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: