here's some start (is this module dead btw?)
Because I tried "correctly" describing the tables to views, it's sorta annoying to add the filters; need to add a relationship to accepted and legal conditions (in that order) then add legal accepted and legal current conditions to filter by those that have accepted current conidtions
I have not included the
No patch since I modified the files to look like they're coming from legal but actually did the real implementation in a differnet.
note need the generic views_api hook in the .module
function legal_views_api() {
return array(
'api' => 2,
'path' => drupal_get_path('module', 'legal'),
);
}
Comments
Comment #1
jshuster@drupal.org commentedI created a new "legal_views" module that views-enables Legal's tables. Drop this inside the Legal directory and enable it.
I wasn't sure how to do this as a patch, as it's a new directory under the Legal module directory. So I rolled this up as a tar.gz instead.
Comment #2
hefox commentedhttp://drupal.org/patch/create has a section on adding, deleteing files in patches :)
Comment #3
robert castelo commentedThanks hefox, and jshuster@drupal.org.
Reworked these patches quite a bit, and added 2 default Views.
Committed to Legal 6.x-8.3.