I'm reading through the book Drupal 7 Development (Packt Publishing) and I'm creating a new entity based on their code. Everything is going good, and I've created the entity, but the 'manage fields' and 'manage display' tabs are not showing up in my entity. I have defined the entity as 'fieldable' (TRUE), and the book itself says:
if the Field UI module is enabled we should see Manage fields and Manage display tabs when viewing each of those artwork types.
But the tabs are not showing up.
Some code:
hook_entity_info:
<?php
function artwork_entity_info()
{
$return['artwork'] = array
(
'label' => t('Artwork'),
'controller class' => 'ArtworkController',
'base table' => 'artwork',
'revision table' => 'artwork_revision',
'uri callback' => 'artwork_uri',
'fieldable' => TRUE,
'entity keys' => array
(
'id' => 'aid',
'revision' => 'vid',
'bundle' => 'type',
'label' => 'title',
),
'bundle keys' => array
(
'bundle' => 'type',
),
'static cache' => TRUE,
'bundles' => array(),
'view modes' => array
(
'full' => array
(
'label' => t('Full content'),
'custom settings' => FALSE,
),
'teaser' => array
(
'label' => t('Teaser'),
'custom settings' => FALSE,
),
),
);
foreach(artwork_types() as $type => $info)
{