function admin_tools_admin_content in Admin Tools 6
Function to build out content for the block that will be used in the administrative toolbar area
1 call to admin_tools_admin_content()
File
- ./
admin_tools.module, line 105
Code
function admin_tools_admin_content() {
$destination = drupal_get_destination();
$links = array(
'all' => array(
'title' => 'Clear All Caches',
'href' => 'admin/flush-cache/all',
'query' => $destination,
),
'views' => array(
'title' => 'Views Cache',
'href' => 'admin/flush-cache/views',
'query' => $destination,
),
'menu' => array(
'title' => 'Menu Cache',
'href' => 'admin/flush-cache/menu',
'query' => $destination,
),
'theme' => array(
'title' => 'Theme Registry',
'href' => 'admin/flush-cache/theme',
'query' => $destination,
),
'requisites' => array(
'title' => 'CSS/JS Cache',
'href' => 'admin/flush-cache/requisites',
'query' => $destination,
),
'tables' => array(
'title' => 'Cache Tables',
'href' => 'admin/flush-cache/cache',
'query' => $destination,
),
'cron' => array(
'title' => 'Run Cron',
'href' => 'admin/reports/status/run-cron',
'query' => $destination,
),
'update' => array(
'title' => 'Run Updates',
'href' => 'update.php',
),
);
$content = theme('links', $links, array(
'class' => 'menu',
));
return $content;
}