-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Project pages needs updated or patch for Inline Entity Form 7.x-1.8 form needs created.
When I attempt to patch 7.x-1.8 using inline_entity_form-pass_render_arguments-2375895-5.patch it is only partially patched and I get the following rejection response:
--- inline_entity_form.module
+++ inline_entity_form.module
@@ -1707,7 +1719,10 @@ function theme_inline_entity_form_entity_table($variables) {
$data = drupal_render($renderable_data);
}
elseif ($field['type'] == 'callback' && isset($field['render_callback']) && function_exists($field['render_callback'])) {
- $data = call_user_func($field['render_callback'], $entity_type, $entity);
+ // Override entity entry with current entity.
+ $field['render_arguments']['entity'] = $entity;
+
+ $data = call_user_func_array($field['render_callback'], $field['render_arguments']);
}
$cells[] = array('data' => $data, 'class' => array('inline-entity-form-' . $entity_type . '-' . $field_name));
This is caused by the line
elseif ($field['type'] == 'callback' && isset($field['render_callback']) && function_exists($field['render_callback'])) {
being changed to
elseif ($field['type'] == 'callback' && isset($field['render_callback']) && is_callable($field['render_callback'])) {
I'm a builder... not a coder. I attempted to run this patch against the available 7.x-1.6 version of inline entity form. Patch passed... but modifications to the preview view mode were not displayed in the inline editor.
I attempted to run this patch against the 7.x-1.7 version of inline entity form and got the same rejection response detailed above.
None of my efforts were successful:-( Any help would be greatly appreciated. I did find another project ief_table_view_mode that helps control the disply of inline entity form's data entry, but the way entities are rendered is not exactly what I am looking for. This module appears to be more flexible.