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

jshuster@drupal.org’s picture

Title: views intergration » views integration
StatusFileSize
new1.9 KB

I 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.

hefox’s picture

Status: Active » Needs review

http://drupal.org/patch/create has a section on adding, deleteing files in patches :)

robert castelo’s picture

Status: Needs review » Fixed

Thanks hefox, and jshuster@drupal.org.

Reworked these patches quite a bit, and added 2 default Views.

Committed to Legal 6.x-8.3.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.