function views_handler_sort_formula::construct

Constructor to take the formula this sorts on.

Overrides views_object::construct

File

handlers/views_handler_sort_formula.inc, line 20

Class

views_handler_sort_formula
Base sort handler that has no options and performs a simple sort

Code

function construct() {
    $this->formula = $this->definition['formula'];
    if (is_array($this->formula) && !isset($this->formula['default'])) {
        $this->error = t('views_handler_sort_formula missing default: @formula', array(
            '@formula' => var_export($this->formula, TRUE),
        ));
    }
    parent::construct();
}