Skip to content

Commit

Permalink
Clean up cruft and debugging shiz
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobroufa committed Mar 29, 2012
1 parent 93cd1e9 commit b7db374
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ba_module.module
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,12 @@ function ba_module_block_view($delta = '') {

$result = $query->execute();
if ($result) {
//$results += entity_load('node', array_keys($result['node']));
$results += entity_view('node', node_load_multiple(array_keys($result['node'])), 'recent_tutorials');
//$results += array_keys($result['node']);
$results += entity_view('node', entity_load('node', array_keys($result['node'])), 'recent_tutorials');
}
}

//dpm($results);
shuffle($results);
$sliced = array_slice($results, 0, 10);
//dpm($sliced);

$block['subject'] = NULL;
$block['content'] = $sliced;
Expand Down

0 comments on commit b7db374

Please sign in to comment.