theme_system_compact_link

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 theme_system_compact_link()

Returns HTML for a link to show or hide inline help descriptions.

Related topics

Code

modules/system/system.module, line 3366

<?php
function theme_system_compact_link() {
  $output = '<div class="compact-link">';
  if (system_admin_compact_mode()) {
    $output .= l(t('Show descriptions'), 'admin/compact/off', array('attributes' => array('title' => t('Expand layout to include descriptions.')), 'query' => drupal_get_destination()));
  }
  else {
    $output .= l(t('Hide descriptions'), 'admin/compact/on', array('attributes' => array('title' => t('Compress layout by hiding descriptions.')), 'query' => drupal_get_destination()));
  }
  $output .= '</div>';

  return $output;
}
?>