| Project: | Embedded Media Field |
| Version: | 6.x-2.5 |
| Component: | Embedded Inline Media |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I have been experimenting with adding views support to eminline.
Obviously to do this we would need to do some database actions during the filter process and this is something I've never seen done with Drupal. Is there any fundamental reason not to have a filter collecting objects from the input text and then storing them in a table?
The general idea is:
<?php
function hook_filter() {
if ($op == 'process') {
if (arg(0) == 'node' && is_numeric(arg(1)) {
// delete any existing entries for this node
// find any matches and add to table
}
}
}
?>For my own purposes I created a module that does this. It provides a filter that needs to come before the eminline filter. The views support is limited - it doesn't support multiple entries but does allow for custom dimensions and some link options. It is included for interest sake. I would love any feedback relating to having a filter act in such a way. Perhaps this concept could eventually be included in eminline directly.
| Attachment | Size |
|---|---|
| atwork_embedded_videos.zip | 6.03 KB |