function theme_record_shorten_records in Shorten URLs 7
Same name and namespace in other branches
- 6 record_shorten.module \theme_record_shorten_records()
- 7.2 record_shorten.module \theme_record_shorten_records()
Builds a list of shortened URLs.
File
- ./
record_shorten.module, line 53 - Records shortened URLs.
Code
function theme_record_shorten_records() {
$total = db_query("SELECT COUNT(sid) FROM {record_shorten}")
->fetchField();
$output = '<p>' . format_plural($total, '1 shortened URL has been recorded.', '@count shortened URLs have been recorded.');
$output .= record_shorten_records_table();
$output .= '<br />';
$form = drupal_get_form('record_shorten_clear_all');
$output .= drupal_render($form);
return $output;
}