I was wondering if anyone had any thoughts on how to hook into this and add columns with a Module. I've got a working version of this where I simply patch the Views Module itself, but, of course, that's not a good idea.

I just want to add a field for putting a title on the headers. So, I'm adding this to the $header array:

t('Title')

and this to the $form['columns'] foreach loop:

$row[] = drupal_render($form['info'][$id]['title']);

As I said, this is all working great in my patched views module, but I'd like to hook into it with a Module instead.

Comments

loopy1492’s picture

Issue summary: View changes
loopy1492’s picture

Issue summary: View changes

Fixed language.

dcam’s picture

Status: Active » Fixed

You'll be better off asking this question in the Views issue queue, https://www.drupal.org/project/issues/views?categories=All. Views UI is an option here in the core issue queue because Views is in Drupal 8 core, but questions about the Drupal 7 version should still go in the contrib queue.

Status: Fixed » Closed (fixed)

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