function column_user_login($item)
{
// Build row actions
$current_user = wp_get_current_user();
if (absint($item['ID']) !== absint($current_user->ID)) {
// Don't let users restrict themselves
if (1 == $item['restricted']) {
$actions = array('unrestrict' => '<a data-restrict="0" data-restrict-text="' . __('Restrict Access', 'pressbooks') . '" data-unrestrict-text="' . __('Unrestrict Access', 'pressbooks') . '">' . __('Unrestrict Access', 'pressbooks') . '</a>');
} else {
$actions = array('restrict' => '<a data-restrict="1" data-restrict-text="' . __('Restrict Access', 'pressbooks') . '" data-unrestrict-text="' . __('Unrestrict Access', 'pressbooks') . '">' . __('Restrict Access', 'pressbooks') . '</a>');
}
} else {
$actions = array();
}
// Return the title contents
return sprintf('%1$s %2$s %3$s', get_avatar($item['ID'], 32), '<span class="user_login">' . $item['user_login'] . '</span>', $this->row_actions($actions));
}