I did the thing required, and the tabs are shown on the entity page
but when I click edit, it does not work, and I get this error message :
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'egroups_edit_egroups_public_audience_form' not found or invalid function name in drupal_retrieve_form() (line 798 of /var/www/html/includes/form.inc).
the configuration in hook_entity_info() is:
'operations ui' => array(
// The base path for your entities. This is the same as your entity's URI
// but without the ID suffix. (In fact, you can set
// entity_operations_entity_uri() as your URI callback, which will use the
// value here).
'path' => 'egroups',
'operations' => array(
// The list of operations. The key defines the path component used after
// the entity ID.
// Creates the 'node/add' path.
'add' => array(
'handler' => 'EntityOperationsOperationAdd',
),
// Creates the path at 'node/NID/view'. Also shows at 'node/NID' because
// of the 'default' property.
'view' => array(
'handler' => 'EntityOperationsOperationEntityView',
'default' => TRUE,
),
// Creates the path at 'node/NID/edit'.
'edit' => array(
'handler' => 'EntityOperationsOperationEdit',
),
// If devel module is available, creates the path at 'node/NID/devel'.
'devel' => array(
'handler' => 'EntityOperationsOperationDevel',
),
'membership' => array(
'handler' => 'EntityOperationsOperationMembership',
),
),
),
'admin ui' => array(
'file' => 'egroups.admin.inc',
'controller class' => 'EGroupsUIController',
'menu wildcard' => '%egroups',
),
I don't know what is "file path"
Comments
Comment #1
joachim commented> function 'egroups_edit_egroups_public_audience_form' not found
The edit tab handler currently requires you to define your entity form builder.
Comment #2
tassaf commentedegroups_public_audience is one of the egroups types, and there is no such function
the function to edit egroups is called: egroups_edit_form
If I call this without tabs it works fine
how to configure tabs to open this for edit tab
Comment #3
joachim commentedWhat is your entity type called? Does it have bundles?
Is 'egroups_edit_egroups_public_audience_form' composed of the form:
> $this->entityType . '_edit_' . $bundle . '_form'
If so, this might be something to do with entity_forms(), which tries to give your entity a different form ID per bundle