Location: PHPKode > projects > Wiccle Web Builder > wwb_101/modules/groups/groups_grid.php
<?PHP

/*
+--------------------------------------
|   Wiccle v1.00
|   ==================================
|   by Markus Loponen & Keith Killilea
|   (c) 2009-2010 Wiccle Ltd.
|   http://www.www.wiccle.com
|   Email: hide@address.com
|   ==================================
|   Time: 2010-04-16 | File version: 1.00
+-------------------------------------
|  	Please read the Wiccle license 
|   Available at docs/license.txt
+-------------------------------------
*/



/* GRID EXTENSIONS */


$grid['member']['scope']['parent'] = "fav_parent_id='[[PARENT_ID]]'";
$grid['member']['scope']['parents'] = "fav_module_ident='groups' AND fav_type='membership'";

if (!empty($_GET['parent']))
{
	if (empty($_SESSION['cache']['groups']['parent_ids'][$_GET['parent']]))
	{
		$current_group = !empty($cache['current']['parent']['parent_id']) ? $cache['current']['parent']
								: Queries::do_query(Queries::get_parent_id_by_ident($_GET['parent']), 1);
								
		$_SESSION['cache']['groups']['parent_ids'][$_GET['parent']] = $current_group['parent_id'];
	}
	
	
	$grid['member']['scope']['parent'] = "fav_parent_id='{$_SESSION['cache']['groups']['parent_ids'][$_GET['parent']]}'";
}






?>
Return current item: Wiccle Web Builder