function scald_admin_atoms in Scald: Media Management made easy 7
Same name and namespace in other branches
- 6 scald.admin.inc \scald_admin_atoms()
The Scald Admin page for Scald Atoms.
1 string reference to 'scald_admin_atoms'
- scald_menu in ./
scald.module - Implements hook_menu().
File
- includes/
scald.admin.inc, line 415
Code
function scald_admin_atoms() {
$count = db_query("SELECT COUNT(*) FROM {scald_atoms}")
->fetchField();
$content = '<h3>' . t('Scald Atoms') . '</h3>';
$content .= '<ul class="action-links"><li>' . l(t('Add atom'), 'atom/add') . '</li></ul>';
$content .= '<h4>' . format_plural($count, 'Currently, there is 1 atom registered with Scald Core.', 'Currently, there are @count atoms registered with Scald Core.') . '</h4>';
$content .= '<p>' . t('Enable the Views module to get an handy paginated table with filters which will allow you to browse your atoms.') . '</p>';
return $content;
}