crumbs.views_ui.inc in Crumbs, the Breadcrumbs suite 6.2
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_x($path, $item) {
$view = $item['map'][4];
return t('Export view "@view"', array(
'@view' => $view->name,
));
}
function findTitle__admin_build_views_clone_x($path, $item) {
$view = $item['map'][4];
return t('Clone view "@view"', array(
'@view' => $view->name,
));
}
function findTitle__admin_build_views_edit_x($path, $item) {
$view = $item['map'][4];
return t('Edit view "@view"', array(
'@view' => $view->name,
));
}
function findTitle__admin_build_views_delete_x($path, $item) {
$view = $item['map'][4];
return t('Delete view "@view"', array(
'@view' => $view->name,
));
}
}