Problem/Motivation

I'm working on new module and would like to make it contrib.
The basic idea is injecting any peace of content (node, block, custom content) between views results.
It is easy to implement the injections itself, but it is hard to create UI embedded in views. I would like to use display plugin extender and place all configuration there. And again it is ok with the current functionality in views, but when I try to reuse functionality of different handlers like an area plugin - it is impossible, because all available object types are hardcoded in views_object_types function.

Proposed resolution

I prepared one small patch with altering views_object_types and views_ui_ajax_forms

drupal_alter('views_object_types', $retval);

and

drupal_alter('views_ui_ajax_forms', $forms); 

It would scientifically simplify my code of configuration UI for my module.
This is an example of using this changes:
https://www.drupal.org/sandbox/denis-shishkov/2727731

Comments

vzblk created an issue. See original summary.

vzblk’s picture

Status: Active » Needs review
StatusFileSize
new645 bytes

Patch with described changes

vzblk’s picture

Issue summary: View changes
dawehner’s picture

Ideally adding a patch to Drupal 8 would be nice as well, because well, I would like to avoid adding a regression, when such a feature doesn't exist in views in D8.

vzblk’s picture

StatusFileSize
new438 bytes

Added patch to alter object types, forms alter is not necessary for D8.

vzblk’s picture

chris matthews’s picture

Assigned: vzblk » Unassigned

Unassigned @vzblk