content_type)) { $vars['entity']->content_type = 'friends'; } $params = array( 'name' => 'params[content_type]', 'value' => $vars['entity']->content_type, 'options_values' => array( 'friends' => elgg_echo('river:widgets:friends'), 'all' => elgg_echo('river:widgets:all'), ), ); $type_dropdown = elgg_view('input/select', $params); ?>