Commit d96e5d7f authored by merlinofchaos's avatar merlinofchaos

#101275: REALLY truly fixed now. I promise.

parent 2bcfbe88
......@@ -30,6 +30,8 @@ function node_views_tables() {
'nid' => array(
'name' => t('Node: ID'),
'sortable' => true,
'notafield' => true,
'handler' => 'views_handler_node_nid',
'help' => t('Display the NID of a node.'),
),
'created' => array(
......@@ -876,3 +878,10 @@ function views_handler_node_delete($fieldinfo, $fielddata, $value, $data) {
return l($link_text, "node/$data->nid/delete");
}
}
/**
* Display a node's nid, which is a little bit special.
*/
function views_handler_node_nid($fieldinfo, $fielddata, $value, $data) {
return $data->nid;
}
......@@ -289,6 +289,7 @@ class _views_query {
*/
function _views_query($primary_table = 'node', $primary_field = 'nid', $alias_prefix = '') {
$this->primary_table = $primary_table;
$this->primary_field = $primary_field;
$this->joins = array();
$this->where = array();
$this->orderby = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment