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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | allow_other_modules_add-2727677-5.patch | 438 bytes | vzblk |
| #2 | allow_other_modules_add-2727677-2.patch | 645 bytes | vzblk |
Comments
Comment #2
vzblk commentedPatch with described changes
Comment #3
vzblk commentedComment #4
dawehnerIdeally 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.
Comment #5
vzblk commentedAdded patch to alter object types, forms alter is not necessary for D8.
Comment #6
vzblk commentedD8 issue copy
https://www.drupal.org/node/2736609
Comment #7
chris matthews commentedUnassigned @vzblk