/**
*/
public function display(Horde_Core_Prefs_Ui $ui)
{
$sources = array();
foreach (Gollem_Auth::getBackend() as $source => $info) {
$selected = $unselected = array();
$selected_list = array_flip(Gollem::getColumns($source));
foreach ($info['attributes'] as $column) {
if (isset($selected_list[$column])) {
$selected[$column] = $column;
} else {
$unselected[$column] = $column;
}
}
$sources[$source] = array('label' => $info['name'], 'selected' => $selected, 'unselected' => $unselected);
}
return Horde_Core_Prefs_Ui_Widgets::source(array('mainlabel' => _("Choose which columns to display, and in what order:"), 'selectlabel' => _("These columns will display in this order:"), 'sourcelabel' => _("Select a backend:"), 'sources' => $sources, 'unselectlabel' => _("Columns that will not be displayed:")));
}