- // Prepare variables
- if (empty($content['action_menu'])) $content['action_menu'] = '---';
- if (empty($content['what_menu'])) $content['what_menu'] = '---';
-
- // Get mode
- $content['access_mode'] = constant('ADMINS_'.strtoupper($content['access_mode']).'_MODE');
-
- // Prepare data for the row template
- $content = array(
- 'sw' => $SW,
- 'id' => $content['id'],
- 'admin' => generateAdminLink($content['admin_id']),
- 'action' => $content['action_menu'],
- 'what' => $content['what_menu'],
- 'mode' => $content['access_mode'],
- );
+ // Generate mode string
+ $content['access_mode'] = '{--ADMINS_' . strtoupper($content['access_mode']) . '_MODE--}';