You are here

function theme_login_destination_triggers in Login Destination 7

Render a trigger of login destination rule.

1 theme call to theme_login_destination_triggers()
login_destination_overview_form in ./login_destination.admin.inc
Form for editing an entire login destination at once.

File

./login_destination.admin.inc, line 272
Admin page callback file for the Login Destination module.

Code

function theme_login_destination_triggers($variables) {
  $items = array_map('check_plain', $variables['items']);
  if (empty($items)) {
    return '<i>' . t('All triggers') . '</i>';
  }
  $output = '';
  foreach ($items as &$item) {
    switch ($item) {
      case 'login':
        $item = t('Login');
        break;
      case 'logout':
        $item = t('Logout');
        break;
    }
    $output .= $item . "<br/>";
  }
  return $output;
}