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

Break up the civicrm.views.inc file

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.5
    • Fix Version/s: 4.1.0
    • Labels:
      None

      Description

      Break up, and clean-up, the 6,000+ line civicrm.views.inc file into one file for each component (Core, Mail, Contribute, Case, Event, Grant, Member, Pledge and Campaign) and files for admin functions, custom field functions and generic handler functions. Each file will contain it's on hook_views_data() sub function, ie _civicrm_core_views_data(&$data). The idea is to make the one file a more manageable set of files.

      Further, I want to only load the file of a particular component of that component is enabled. tHe trick with dynamically leading the files based on the active components is knowing when a component is turned on (I may propose a hook for that).

      Additionally I will be deleting the function civicrm_views_handlers() which is no longer used in the Views 3 API.

        Attachments

          Activity

            People

            • Assignee:
              jalama Jim Taylor
              Reporter:
              jalama Jim Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: