function theme_system_compact_link
theme_system_compact_link()
Returns HTML for a link to show or hide inline help descriptions.
Related topics
File
- modules/system/system.module, line 3430
- 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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.module/function/theme_system_compact_link/7.x