1 entity_example.module entity_example_info_page()

Basic information for the page.

Related topics


modules/examples/entity_example/entity_example.module, line 216
Implements the basic functionality required to create and display an entity.


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;