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.

Writing Custom Sort Handlers

Video loading...

Join Drupalize.Me to watch this video

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

Log in Sign up
  • 0:01
    [Coding for views for Drupal 7]
  • 0:03
    [Chapter 14 with Joe Shindelar]
  • 0:04
    In this chapter, I'm going to take a look
  • 0:06
    at creating a sort handler for Views.
  • 0:08
    We're going to look at how Views handlers
  • 0:10
    can alter the query that's used
  • 0:12
    in order to pull results from the MySQL database.
  • 0:15
    The end result
  • 0:17
    is that we want to be able to order
  • 0:19
    our list of records returned from the Databasics module,
  • 0:01
    [Codificando para Views para Drupal 7]
  • 0:03
    [Capítulo 14 com Joe Shindelar]
  • 0:04
    Nesse capítulo, irei dar uma olhada
  • 0:06
    na criação de um sort handler para Views.
  • 0:08
    Iremos ver como handlers Views
  • 0:10
    podem alterar a consulta que está sendo usada
  • 0:12
    para puxar resultados no banco de dados MySQL.
  • 0:15
    O resultado final
  • 0:17
    é que queremos poder ordenar
  • 0:19
    nossa lista de registros retornados do módulo Databasics,

Writing Custom Sort Handlers

Loading...

In this lesson Joe demonstrates how to extend the default views sort handler and create a new one for use on our table that will allow us to sort the data returned from a query with the rows that belong to the currently logged in user at the top of the list. This lesson builds on information from the previous couple of lessons regarding implementing views handlers and general coding for views best practices.

Downloads: 
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.