You are here

crumbs.views_ui.inc in Crumbs, the Breadcrumbs suite 6

Same filename and directory in other branches
  1. 6.2 plugins/crumbs.views_ui.inc

File

plugins/crumbs.views_ui.inc
View source
<?php

function views_ui_crumbs_plugins() {
  return new _views_ui_CrumbsPlugin();
}

/**
 * Implementation of class hook class_CrumbsParentFinder
 * on the behalf of menu module.
 */
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,
    ));
  }

}

Functions

Classes

Namesort descending Description
_views_ui_CrumbsPlugin Implementation of class hook class_CrumbsParentFinder on the behalf of menu module.