function theme_checklistapi_compact_link in Checklist API 7
Returns HTML for a link to show or hide inline item descriptions.
1 theme call to theme_checklistapi_compact_link()
- checklistapi_checklist_form in ./
checklistapi.pages.inc - Page callback: Form constructor for the checklist form.
File
- ./
checklistapi.pages.inc, line 230 - Page callbacks for the Checklist API module.
Code
function theme_checklistapi_compact_link() {
$output = '<div class="compact-link">';
if (checklistapi_compact_mode()) {
$output .= l(t('Show item descriptions'), current_path() . '/compact/off', array(
'attributes' => array(
'title' => t('Expand layout to include item descriptions.'),
),
'query' => drupal_get_destination(),
));
}
else {
$output .= l(t('Hide item descriptions'), current_path() . '/compact/on', array(
'attributes' => array(
'title' => t('Compress layout by hiding item descriptions.'),
),
'query' => drupal_get_destination(),
));
}
$output .= '</div>';
return $output;
}