All pastes #494215 Raw Edit

Something

public text v1 · immutable
·published 2007-05-18 03:37 UTC
rendered paste body
function property_view($node, $teaser = FALSE, $page = FALSE) {
	//$node = node_prepare($node, $teaser);
	
	ob_start();
	echo 'VIEW:';
	echo '<pre>';
	print_r($node);
	echo '</pre>';
	$pr = ob_get_contents();
	ob_end_clean();
	
	drupal_set_message($pr);
	/*
	$node->content['foobargoo'] = array(
		'#value' => 'yes',
		'#weight' => 5
	);

	$node->content['offer_maker'] = array(
		'#value' => _bidding_offer_maker($node),
		'#weight' => 3
	);
	
	$node->content['all_bids'] = array(
		'#value' => _property_bid_viewer($node),
		'#weight' => 2
	);
	*/
	$node->content['monkey_butt'] = array(
		'#value' => 'plop on the head',
		'#weight' => 1
	);
	$node->content['bid_data'] = array(
		'#value' => _bid_data($node),
		'#weight'=> 5
	);
	
	return $node;
}