Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Alternate resources: 

Customize the Entity UI by Overriding the UI Controller

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:02
    [Working with Entities in Drupal 7, Chapter 13, with Joe Schindelar]
  • 0:05
    When we use the Entity API, we get a lot of stuff for free,
  • 0:09
    just by declaring specific classes in our hook_entity_info instance.
  • 0:14
    In this lesson, I'd like to take a look
  • 0:17
    at some of those things that we get for free
  • 0:19
    and how they actually work under the hood, so that it's not just black magic.
  • 0:23
    We're going to take a look at the UI controller in a bit more depth
  • 0:27
    and how some of those things, like the ability to have all of these paths
  • 0:31
    for our entities automatically created for us, work.
  • 0:34
    And then I'd like to override the UI controller's hook_forms method

Customize the Entity UI by Overriding the UI Controller


In this lesson we're going to take a more in-depth look at the UI controller we used earlier to create our administrative UI for the entity. We'll walk through how the controller adds menu paths and the like, without us needing to do any extra work, and then clean up our form-builder functions by overriding the UI controller's method, so that we can gain control of the name of the function that's called.

Log in or sign up to download companion files.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.