Pastoid

The page you are looking at now is at this URL: http://pastoid.com/bww

This paste was last updated on August 31, 2009 at 8:34 am.

Pasted Coderaw

<?php
 
function gse_views_data() {
	$data = array();
 
	$data['sections_data']['table']['group'] = 'Site Section';
 
	$data['sections_data']['table']['join'] = array(
		'sections_nodes' => array(
		  'left_field' => 'sid',
		  'field' => 'sid',
		),
	);
 
	$data['sections_data']['name'] = array(
	  'title' => t('Section Name'),
	  'help' => t('The name of the site section'),
	  'field' => array(
	    'click sortable' => TRUE,
	  ),
	  'sort' => array(
	    'handler' => 'views_handler_sort',
	  ),
	  'argument' => array(
	    'handler' => 'views_handler_argument_string',
	    'help' => t('Site Section name.'),
	    'many to one' => TRUE,
	    'empty name field' => t('Main site'),
	  ),
	);
 
 
	$data['sections_nodes']['table']['group'] = 'Site Section';
 
	$data['sections_nodes']['table']['join'] = array(
		'node' => array(
		  'left_field' => 'nid',
		  'field' => 'nid',
		),
	);
 
	return $data;
}
 
?>
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 3
Is this paste spam?
<Hide