__('Recently Created'), 'value'=> 'created'); $sorting_options[] = array('caption'=> __('Recently Modified'), 'value'=> 'changed'); $sorting_options[] = array('caption'=> __('Largest Group'), 'value'=> 'members'); if ($selected_option == 'members') { $links = Group::get_largest_groups(5); } else if ($selected_option == 'created') { $obj_group = new Group(); $links = $obj_group->get_all('', 5, FALSE, 5, 1 ); } else if ($selected_option == 'changed') { $obj_group = new Group(); $links = $obj_group->get_all('', 5, FALSE, 5, 1,'changed'); } $obj = new NewestGroupsModule; $obj->mode = $obj->sort_by = SORT_BY; $obj->links = $links; $obj->sorting_options = $sorting_options; $obj->selected_option = $selected_option; echo $obj->render(); ?>