Skip to content
Snippets Groups Projects

Issue #3360486: inline_entity_form integration

+ 10
0
@@ -38,3 +38,13 @@ function publishcontent_form_node_form_alter(&$form, FormStateInterface $form_st
}
}
}
/**
* Implements hook_inline_entity_form_entity_form_alter().
*/
function publishcontent_inline_entity_form_entity_form_alter(array &$entity_form, FormStateInterface &$form_state) {
// Publishcontent module logic only applies to nodes at the moment.
if ($entity_form['#entity_type'] === 'node') {
publishcontent_form_node_form_alter($entity_form, $form_state);
}
}
Loading