function block_admin_link in Admin 6
Implementation of hook_admin_link() on behalf of the block module.
File
- ./
admin.module, line 326
Code
function block_admin_link($type, $object) {
$links = array();
if ($type == 'block') {
if (user_access('administer blocks')) {
$links['block-configure'] = array(
'title' => t('Configure'),
'href' => "admin/build/block/configure/{$object->module}/{$object->delta}",
'attributes' => array(
'class' => 'icon-configure',
),
'query' => array(
'destination' => $_GET['q'],
),
);
}
}
return $links;
}