DRUPAL 7.64
manage fields and manage display tabs wont show up:
I cant figure out the reason this is my code.
<?php
/**
* Implements hook_entity_info().
*/
function slideentity_entity_info() {
$return = array();
$return['slide'] = array(
'label' => t('Slide'),
'base table' => 'slideentity_slide',
'entity keys' => array(
'id' => 'id',
'label' => 'name',
),
'uri callback' => 'entity_class_uri',
// These are the default controllers.
// 'entity class' => 'Entity',
'entity class' => 'SlideEntity',
// 'controller class' => 'DrupalDefaultEntityController',
// Other options provided by the EntityAPI contrib module:
// 'controller class' => 'EntityAPIController ',
// 'controller class' => 'EntityAPIControllerExportable',
'controller class' => 'SlideEntityController',
// The information below is used to extend the EntityDefaultUIController
'admin ui' => array(
'path' => 'admin/slideentity',
'controller class' => 'SlideEntityUIController',
'menu wildcard' => '%slideentity',
'file' => 'slideentity.admin.inc',
),
'module' => 'slideentity',
'fieldable' => TRUE,
// Access callback to determine permisisons.
'access callback' => 'slideentity_access_callback',
// Tell FieldAPI that fields can be attached to our slide entity
'bundles' => array(
'slide' => array(
'label' => t('Slide'),
'admin' => array(
'path' => 'admin/slideentity',
'access arguments' => array('administer slide'),
'bundle argument' => 4,
),
),
),
'views controller class' => 'EntityDefaultViewsController',
);
return $return;
}
?>
Comments
Comment #2
Rebekaloz commentedComment #3
Rebekaloz commentedHi! Maybe someone reading this knows the reason for why using the same name for the entity and for the module fixed the problem, and made my bundle finally fieldable!
Comment #4
Rebekaloz commented