function entity_example_info_page in Examples for Developers 7
Basic information for the page.
Related topics
1 string reference to 'entity_example_info_page'
- entity_example_menu in entity_example/
entity_example.module - Implements hook_menu().
File
- entity_example/
entity_example.module, line 219 - Implements the basic functionality required to create and display an entity.
Code
function entity_example_info_page() {
$content['preface'] = array(
'#type' => 'item',
'#markup' => t('The entity example provides a simple example entity.'),
);
if (user_access('administer entity_example_basic entities')) {
$content['preface']['#markup'] = t('You can administer these and add fields and change the view !link.', array(
'!link' => l(t('here'), 'admin/structure/entity_example_basic/manage'),
));
}
$content['table'] = entity_example_basic_list_entities();
return $content;
}