Skip to content

Commit

Permalink
Remove (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
laryn committed Aug 2, 2018
1 parent ada9154 commit ae033f9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions flippy.module
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,10 @@ function flippy_build_list($node) {
$up = ($order == 'ASC') ? 'ASC' : 'DESC';
$down = ($order == 'ASC') ? 'DESC' : 'ASC';
// Create a starting-point EntityFieldQuery object
global $language;
$query = db_select('node', 'n');
$query->condition('n.type', $node->type)
->condition('n.status', 1)
->condition('n.nid', $node->nid, '!=')
->condition(db_or()
->condition('n.language', array($language->language, LANGUAGE_NONE), 'IN')
->condition('n.language', $node->language, '=')
)
->fields('n', array('nid', 'title'))
->range(0, 1)
->addTag('node_access')
Expand Down

0 comments on commit ae033f9

Please sign in to comment.