crumbs.views_ui.inc in Crumbs, the Breadcrumbs suite 6
File
plugins/crumbs.views_ui.inc
View source
<?php
function views_ui_crumbs_plugins() {
return new _views_ui_CrumbsPlugin();
}
class _views_ui_CrumbsPlugin {
function define($h) {
$h
->setTitle(t('Define more meaningful breadcrumb titles for views_ui pages.'));
}
function findTitle__admin_build_views_export__($path, $item) {
$view = $item['map'][4];
return t('Export view "@view"', array(
'@view' => $view->name,
));
}
function findTitle__admin_build_views_clone__($path, $item) {
$view = $item['map'][4];
return t('Clone view "@view"', array(
'@view' => $view->name,
));
}
function findTitle__admin_build_views_edit__($path, $item) {
$view = $item['map'][4];
return t('Edit view "@view"', array(
'@view' => $view->name,
));
}
function findTitle__admin_build_views_delete__($path, $item) {
$view = $item['map'][4];
return t('Delete view "@view"', array(
'@view' => $view->name,
));
}
}