Commit 90c1c788 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove Suspended column from admin user search (again)

parent 024403f5
...@@ -249,8 +249,6 @@ function build_admin_user_search_results($search, $offset, $limit, $sortby, $sor ...@@ -249,8 +249,6 @@ function build_admin_user_search_results($search, $offset, $limit, $sortby, $sor
$cols['institution'] = array('name' => get_string('institution'), $cols['institution'] = array('name' => get_string('institution'),
'template' => '{if empty($r.institutions)}{$institutions.mahara->displayname}{else}{foreach from=$r.institutions item=i}<div>{$institutions[$i]->displayname}</div>{/foreach}{/if}'); 'template' => '{if empty($r.institutions)}{$institutions.mahara->displayname}{else}{foreach from=$r.institutions item=i}<div>{$institutions[$i]->displayname}</div>{/foreach}{/if}');
} }
$cols['suspended'] = array('name' => get_string('suspended', 'admin'),
'template' => '{if !$r.suspended || $r.suspended == \'f\'}<a class="suspend-user-link" href="' . get_config('wwwroot') . 'admin/users/suspend.php?id={$r.id}">' . get_string('suspenduser', 'admin') . '</a>{/if}');
$smarty = smarty_core(); $smarty = smarty_core();
$smarty->assign_by_ref('results', $results); $smarty->assign_by_ref('results', $results);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment