Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Media Browser
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
27 Sep 2011 at 22:52 UTC
Updated:
4 Jan 2014 at 01:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
becw commentedIf we add a
title()callback to the new media browser plugin class, we can use that to determine plugin titles. We can provide a default implementation that just returns the plugin's 'title' property from the info hook.Comment #2
becw commentedHere's a patch that I think addresses this issue. Plugins can set a tab title in the plugin info array or use custom logic in their class's
title()method. The plugin output is run throughhook_media_browser_plugins_alter()as usual (we did discuss changing this so that adrupal_alter()gets called the output of one plugin at a time, but I haven't touched that), and ultimately the#titleproperty of the plugin output is used as the tab title. Does this give us enough to work with?Comment #3
dave reidAssigning to myself for review.
Comment #4
dave reidAfter the Media browser cleanup has landed, I committed something like this but implemented in the view() method to allow the title to be changed: http://drupalcode.org/project/media.git/commit/bfa3ac9