function theme_system_compact_link

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

Related topics

3 theme calls to theme_system_compact_link()
theme_admin_page in drupal/core/modules/system/system.admin.inc
Returns HTML for an administrative page.
theme_system_admin_index in drupal/core/modules/system/system.admin.inc
Returns HTML for the output of the admin index page.
theme_user_admin_permissions in drupal/core/modules/user/user.admin.inc
Returns HTML for the administer permissions page.

File

drupal/core/modules/system/system.module, line 3548
Configuration system that lets administrators modify the workings of the site.

Code

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;
}