Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.5
-
Fix Version/s: 4.1.0
-
Component/s: Drupal Integration Modules
-
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
1.
|
only load views for enabled components | Done/Fixed | Jim Taylor |
|