summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt365
-rw-r--r--README.txt184
-rw-r--r--admin_devel/admin_devel.info5
-rw-r--r--admin_devel/admin_devel.js40
-rw-r--r--admin_devel/admin_devel.module33
-rw-r--r--admin_menu-rtl.css50
-rw-r--r--admin_menu.api.php87
-rw-r--r--admin_menu.color.css46
-rw-r--r--admin_menu.css209
-rw-r--r--admin_menu.inc815
-rw-r--r--admin_menu.info11
-rw-r--r--admin_menu.install99
-rw-r--r--admin_menu.js232
-rw-r--r--admin_menu.map.inc163
-rw-r--r--admin_menu.module603
-rw-r--r--admin_menu.uid1.css9
-rw-r--r--admin_menu_toolbar/admin_menu_toolbar.css155
-rw-r--r--admin_menu_toolbar/admin_menu_toolbar.info5
-rw-r--r--admin_menu_toolbar/admin_menu_toolbar.install37
-rw-r--r--admin_menu_toolbar/admin_menu_toolbar.js26
-rw-r--r--admin_menu_toolbar/admin_menu_toolbar.module84
-rw-r--r--admin_menu_toolbar/toolbar.pngbin558 -> 0 bytes
-rw-r--r--admin_views/admin_views.css20
-rw-r--r--admin_views/admin_views.info7
-rw-r--r--admin_views/admin_views.install16
-rw-r--r--admin_views/admin_views.module16
-rw-r--r--admin_views/admin_views.views.inc34
-rw-r--r--admin_views/admin_views.views_default.inc27
-rw-r--r--admin_views/plugins/views_plugin_display_system.inc230
-rw-r--r--admin_views/views_default/admin_content_comment.inc243
-rw-r--r--admin_views/views_default/admin_content_node.inc323
-rw-r--r--admin_views/views_default/admin_content_taxonomy.inc250
-rw-r--r--admin_views/views_default/admin_user_user.inc242
-rw-r--r--images/arrow-rtl.pngbin273 -> 0 bytes
-rw-r--r--images/arrow.pngbin183 -> 0 bytes
-rw-r--r--images/bkg-red.pngbin236 -> 0 bytes
-rw-r--r--images/bkg.pngbin236 -> 0 bytes
-rw-r--r--images/bkg_tab.pngbin236 -> 0 bytes
-rw-r--r--images/icon_users.pngbin629 -> 0 bytes
-rw-r--r--tests/admin_menu.test172
40 files changed, 1 insertions, 4837 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
deleted file mode 100644
index 9006310..0000000
--- a/CHANGELOG.txt
+++ /dev/null
@@ -1,365 +0,0 @@
-
-Admin Menu 8.x-3.x, xxxx-xx-xx
-------------------------------
-
-
-Admin Menu 7.x-3.x, xxxx-xx-xx
-------------------------------
-#1144768 by idlewilder, sun: Fixed devel modules to skip are not displayed.
-#1079374 by WillHall: Fixed JS Error: unrecognized expression: [href=/].
-#1114132 by joelstein, sun: Added Field UI to list of developer modules.
-#1008380 by bdragon, sun: Updated admin_views for D7.
-#1146644 by sun: Fixed PHP 5.3 compability in tests.
-#442560 by sun: Fixed 'defer' script attribute breaks Drupal.behaviors in FF3.6.
-#1022902 by matglas86, sun: Updated for changed core Toolbar styles.
-
-
-Admin Menu 7.x-3.0-RC1, 2010-01-07
-----------------------------------
-#990774 by sun: Updated for $closure renamed to $page_bottom.
-#991906 by johnv, sun: Added configure to .info file.
-#947198 by sun: Added hint about disabling Toolbar.
-by sun: Updated administrative settings form for D7 UX guidelines.
-by sun: Disabled "Rebuild system links" button on settings form.
-#420816 by sun, smk-ka: Improved on-demand loading of dynamic paths.
-#420816 by tim.plunkett: Fixed dynamic Field UI paths for vocabularies.
-#871774 by swentel: Fixed developer modules toggle still uses referer_uri().
-#671760 by sun: Updated for new preprocess defaults.
-#731462 by sun: Updated for system_rebuild_theme_data().
-by sun: Re-added a "Rebuild system links" button to settings form.
-#420816 by tim.plunkett: Updated taxonomy path map for machine names.
-#857688 by sun: Updated for reverted system_settings_form().
-#420816 by smk-ka, sun: Added merging of menu trees containing dynamic paths.
-by sun: Fixed tests and minor admin_menu_toolbar styling issues.
-by sun: Fixed various styling issues for admin_menu and admin_menu_toolbar.
-by sun: Updated for Schema API, DBTNG, coding standards.
-by sun: Updated for new admin/modules path.
-#701424 by hutch: Updated for new admin/people/people path.
-by sun: Removed orphan menu rewrite function.
-#667858 by sun: Don't remove the current user from the switch user list.
-#631550 by sun: Updated for fixed MENU_VISIBLE_IN_BREADCRUMB behavior.
-#658344 by dereine, sun: Updated for removed drupal_session_count().
-by sun: Added separate permission to flush cashes.
-by sun: Updated for changed Devel settings form.
-by sun: Updated for new {system}.info module data.
-#614730 by azriprajwala, sun: Updated for hook_theme() key changes.
-by sun: Updated for all theme functions should take a single argument.
-by sun: Reverted removal of registry cache flushing option.
-#578520 by sun: Fixed destination query parameter is processed wrongly.
-#578520 by sun: Updated for $query in url() should always be an array.
-by Dave Reid: Updated for PHP 5 date constants.
-by sun: Updated for new database API.
-by smk-ka: Removed remnants of the registry. Fixed flush admin menu cache
- command.
-#567618 by smk-ka: Revised test cases. Abstracted out base web test class.
-by sun: Updated for removed registry, new admin paths.
-#326539 by sun: Updated for class attribute array.
-#519782 by sun: Updated for hook_footer() replaced by hook_page_alter().
-#525638 by Razorraser: Updated for admin/build renamed to admin/structure.
-by Dave Reid: Updated for hook_permission().
-#482314 by Dave Reid: Updated for node_type_get_types().
-#437506 by yched, Dave Reid: Updated for menu_router_build().
-#376816 by sun: Updated for compatibility for other JavaScript libraries.
-#337820 by Dave Reid: Updated for new user/logout path.
-#340546 by Dave Reid: Updated for drupal_add_js().
-#340531 by Dave Reid: Updated for module_list().
-#266358 by sun: Updated for drupal_add_css().
-#320526 by yettyn, sun: Updated to UNSTABLE-2 (DBTNG queries, permissions, etc).
-by sun: Changed admin_menu_wipe() to admin_menu_flush_caches().
-by sun: Updated content-type edit menu item locations.
-by sun: Fixed sess_count() changed to drupal_session_count().
-
-
-Admin Menu 6.x-3.x, xxxx-xx-xx
-------------------------------
-#588936 by fenstrat: Fixed Toolbar shortcuts not visible.
-#860390 by Kevin Rogers: Fixed .info file parsing error on uncertain platform.
-#551484 by sun: Fixed stale hook_admin_menu_output_alter() docs.
-
-
-Admin Menu 6.x-3.0-ALPHA4, 2010-03-11
--------------------------------------
-#730156 by sun: Fixed Administration views.
-by sun: Fixed missing .element-hidden style in D6 for permissions tweak.
-#645526 by TravisCarden: Fixed stale local tasks markup after moving them.
-#366442 by sun: Added tweak to collapse modules on permissions page.
-#655926 by donquixote, sun: Improved performance of delayed mouseout.
-#557062 by sun: Fixed admin_menu_toolbar JS/CSS loaded before admin_menu's.
-#599462 by sun, koyama: Added background-color to avoid unintentional override.
-#601918 by BWPanda: Fixed admin_menu.css overrides admin_menu_toolbar.css.
-#586228 by Island Usurper: Fixed for PHP 5.3.
-#554124 by Dave Reid: Added missing toolbar.png.
-#557062 by Dave Reid: Fixed undefined Drupal.admin error when including
- admin_menu_toolbar.js before admin_menu.js.
-#511744 by smk-ka, sun: Fixed /admin page links are broken.
-by smk-ka: Added missing variables to hook_uninstall().
-#571038 by smk-ka: Removed call to admin_menu_wipe() and cleaned install file.
-#552190 by Bartezz: Fixed missing t() for user logout link.
-
-
-Admin Menu 6.x-3.0-ALPHA3, 2009-08-16
--------------------------------------
-#502500 by sun: Added "Create content" menu.
-#538714 by sun: Fixed wrong re-parenting in Drupal's menu system.
-#550132 by sun: Fixed (temporarily) admin_views menu items.
-by sun: Added Administration views sub-module, converting all administrative
- listing pages in Drupal core into real, ajaxified, and alterable views.
-#547206 by sun: Fixed menu link descriptions lead to mouseover clashes.
-#540954 by Rob Loach: Added String Overrides to list of developer modules.
-#540762 by Deslack: Added Malay translation.
-
-
-Admin Menu 6.x-3.0-ALPHA2, 2009-08-02
--------------------------------------
-#527908 by sun: Changed theme_admin_menu_links() to use $element['#children'].
-#527908 by markus_petrux, sun: Changed admin menu into a renderable array.
-#420812 by sun, smk-ka: Added support for hook_js().
-by sun: Fixed destination query string of current page not applied to links.
-by sun: Changed Drupal.admin.attachBehaviors() to accept local JS settings.
-#276751 by sun: Revamped rendering of menu additions/widgets.
-#500866 by sun: Updated for removed t() from getInfo() in tests.
-#402058 by sun: Added Administration menu toolbar module.
-by markus_petrux, sun: Added API documentation.
-#461264 by sun: Added site/domain as CSS class.
-#451270 by smk-ka, sun: Changed visual indication for uid1.
-by sun: Minor code clean-up.
-#490670 by sun: Fixed missing menu after installation/upgrade.
-#515718 by joelstein, sun: Added rules_admin module to developer modules list.
-#352065 by sun: Added setting to select developer modules to keep enabled.
-#511854 by psynaptic: Fixed logout link.
-#424960 by markus_petrux, sun: Fixed gzip compression for cached output.
-by sun: Fixed opacity of links in sub-menus.
-#479922 by sun: Fixed fieldsets not collapsed on admin/build/modules/list*.
-#495148 by sun: Fixed MENU_NORMAL_ITEMs do not appear in administration menu.
-by sun: Fixed tests for new content-type locations.
-#345984 by markus_petrux, sun: Fixed old menu links not removed on upgrade.
-#276751 by sun: Major rewrite. Fixed menu items cannot be moved, altered, or
- added as well as various performance issues.
-by sun: Added variable to allow to disable caching (rewrite).
-
-
-Admin Menu 6.x-3.0-ALPHA1, 2009-06-10
--------------------------------------
-#236657 by sun: Updated for corrected arguments of system_clear_cache_submit().
-#483870 by sun: Fixed compatibility with new Admin module.
-#483152 by sun: Fixed admin_menu caches not flushed when clean URLs are toggled.
-#479922 by danep: Fixed fieldsets not collapsed on admin/build/modules/list.
-#469716 by sun: Fixed wrong AJAX callback URL under various conditions.
-#471504 by wulff: Updated Danish translation.
-by sun: Fixed admin_menu_suppress() does not suppress margin-top.
-#451270 by sun: Added visual indication when working as uid 1.
-by Dave Reid: Updated for getInfo() in tests.
-#420828 by sun: Added dynamic replacements for cached administration menu.
-#420840 by sun: Fixed Drupal.behaviors.adminMenu must be only executed once.
-#345984 by markus_petrux, sun: Added client-side caching of administration menu.
- Attention: A new era of Drupal user experience starts here. This is the very
- first issue of a series of improvements targeting plain awesomeness.
-#349169 by sun: Fixed Devel switch user links contain multiple path prefixes.
-#345984 by sun: Code clean-up in preparation for client-side caching.
-#415196 by psynaptic: Updated for CSS coding standards.
-#406672 by mr.j, sun: Fixed "Move local tasks" option leaves stale UL.
-by sun: Major code clean-up and sync across 3.x branches.
-#349505 by smk-ka, sun: Performance: Added caching of entire menu output.
-#315342 by wulff: Added "My account" link (by splitting the "Log out" item).
-#384100 by kepol, sun: Fixed content-type items displayed in wrong place.
-#373339 by sun: Fixed double-escaped 'Edit <content-type>' link titles.
-#373372 by sun: Turned procedural JavaScript into admin menu behaviors.
-by sun: Fixed admin menu tests (and updated to 6.x for SimpleTest 2.x).
-#359158 by nitrospectide, sun: Fixed Devel Themer breaks admin menu.
-#365335 by sun: Fixed not all variables removed after uninstall.
-
-
-Admin Menu 6.x-1.3, 2009-01-24
-------------------------------
-#362454 by sun: Fixed Drupal.settings.admin_menu is undefined JS error in some
- browsers.
-
-
-Admin Menu 6.x-1.2, 2009-01-20
-------------------------------
-#358697 by sun: Added docs about admin_menu_suppress() to README.txt.
-#342684 by darumaki, sun: Added notice about Opera configuration to README.txt.
-#350932 by sun: Fixed "Run updates" link repeated per language/site.
-#342298 by gustz: Updated Spanish translation.
-#346106 by sun: Fixed XHTML-Strict validation for admin menu icon.
-#287448 by sun: Fixed unnecessary menu rebuild for users without permission to
- use admin menu.
-#342002 by AltaVida: Fixed improper test for node/add paths.
-#272920 by keith.smith: Changed all text strings throughout the module.
-#322731 by sun: Fixed improper use of t() in module install file.
-#282030 by sun: Fixed "Run updates" item visible for unprivileged users.
-#322877 by sun: Added tweak to move page tabs into administration menu.
-#287468 by sun: Fixed module paths directly below "admin" get the wrong parent.
-#310423 by sun: Added optional position: fixed configuration setting.
-#292657 by smk-ka: Improved rendering performance.
-#234149 by yhager, sun: Fixed RTL support for IE.
-#323726 by danez1972: Added Spanish translation.
-#325057 by sun: Updated README.txt.
-#234149 by yhager, levavie, sun: Added RTL support.
-#325057 by sun: Added links to flush specific caches.
-#324334 by AltaVida: Fixed usernames with spaces not in Devel user switch links.
-#319382 by betz: Added Dutch translation.
-
-
-Admin Menu 6.x-1.1, 2008-09-12
-------------------------------
-#295476 by pwolanin, use <front> for icon path to fix front-page path-change
- bug and pathauto conflict, add wipe button to admin form.
-#301370 by sun: Disabled module fieldset collapsing behavior by default.
-#288672 by sun: Fixed JS hover behavior not working in IE.
-#290803 by sun: Fixed missing devel_themer in devel modules; added some others.
-#286636 by sun: Fixed menus do not drop down in IE6.
-#249537 by pwolanin, sun: Added admin_menu_suppress() to allow other modules to
- disable the display of admin_menu on certain pages (f.e. popups).
-#268211 by sun: Fixed invalid issue queue links for custom modules and
- sub-modules of projects.
-#261461 by sun: Added FAQ entry for displaying other menus like admin_menu.
-#264067 by sun: Added FAQ entry for huge amount of anonymous users displayed.
-#280002 by pwolanin: Clean up .test setUp function.
-#242377 by sun: Fixed sub-level menu items exceed total document height.
-
-
-Admin Menu 6.x-1.0, 2008-06-26
-------------------------------
-#266308 by sun: Fixed jQuery 1.0.x incompatible selector for collapsing modules.
-#268373 by sun: Added hook_update to cleanup for alpha/beta testers.
-#268373 by sun: Added menu callback to disable/enable developer modules.
-#132524 by pwolanin: Fixed admin_menu links are re-inserted each time menu links
- are rebuilt.
-by smk-ka: Performance: Use 'defer' attribute for JavaScript to delay execution.
-#266099 by sun: Fixed description of "Apply margin-top" configuration setting.
-#266308 by sun: Usability: Added Utility module features to collapse module
- fieldsets on Modules page.
-#251341 by sun: Added docs about display drupal links permission.
-
-
-Admin Menu 6.x-1.0-BETA, 2008-06-08
------------------------------------
-#132524 by sun: Fixed support for sub-content-types below node/add.
-#132524 by pwolanin: Added support for localizable menu links.
-#132524 by pwolanin, sun: Fixed menu links adjustments.
-#132524 by pwolanin: Added simpletest.
-#132524 by pwolanin: Major rewrite to better use Drupal 6 menu system.
-#132524 by sun: Moved gettext translation files into translations.
-#132524 by sun: Committing pre-alpha code for D6 due to public demand.
-
-
-Admin Menu 5.x-2.x, xxxx-xx-xx
-------------------------------
-#246221 by sun: Fixed user counter displays different values than Who's online
- block.
-#239022 by mikl: Added Danish translation.
-#234444 by smk-ka: Fixed admin_menu icon does not respect theme settings.
-#198240 by sun: Fixed admin_menu displayed in print output.
-
-
-Admin Menu 5.x-2.4, 2008-02-24
-------------------------------
-#214740 by sun: Regression: Fixed directly applied marginTop not supported by IE.
-#214725 by sun: Fixed wrong CSS id in admin_menu.js (missed in 5.x-2.3).
-
-
-Admin Menu 5.x-2.3, 2008-02-24
-------------------------------
-#214725 by sun: Fixed CSS id and classes should not contain underscores.
-#209390 by sun: Added note about interaction with user role permissions.
-#214740 by jjeff, sun: Added module settings to configure margin-top CSS.
-#200737 by sun: Changed admin_menu (fav)icon to use theme setting, if defined.
-#203116 by smk-ka: Improved performance of non-cached admin_menu by storing
- already processed URLs in the cache.
-#224605 by sun: 'Add <content_type>' items do not appear without 'administer
- nodes' permission.
-#210615 by robertgarrigos: Fixed Mozilla Mac: Collapsible fieldsets display
- error.
-
-
-Admin Menu 5.x-2.2, 2007-01-08
-------------------------------
-#204884 by jjeff: Usability: Override theme font family declaration.
-#204935 by jjeff: Added mouseout delay for hovered menus (yay!).
-#193941 by downgang: Fixed margin in IE6 using Garland theme.
-#197306 by sun: Fixed 'Run updates' leads to wrong url with clean URLs disabled.
-Moved images into sub-folder.
-by smk-ka: Fixed icon title for user counter not displayed & coding style.
-Fixed user count not displayed without 'administer users' permission.
-
-
-Admin Menu 5.x-2.1, 2007-12-02
-------------------------------
-Fixed adding menu items with negative weight not always working.
-Fixed admin_menu_copy_items() is overwriting already existing items.
-Fixed display menu item ids in devel settings does not work.
-
-
-Admin Menu 5.x-2.0, 2007-12-02
-------------------------------
-Added devel_admin_menu() for fast access to clear-cache, variable editor and
- switch_user.
-Added username to logout button.
-Added hook_admin_menu() to allow other modules to alter admin_menu.
-#194189 by sun: Added counter for current anonymous/authenticated users.
-Added Drupal.org project issue queue links for all enabled contrib modules.
-#189701 by sun: Changed admin_menu icon to be a menu.
-#193925 by sun: Removed obsolete menu slicing code.
-#193669 by smk-ka: Moved admin_menu builder functions into include file.
-
-
-Admin Menu 5.x-1.2, 2007-11-18
-------------------------------
-#176969 by smk-ka: Fixed performance issues with path(auto) module by
- introducing a menu cache for admin_menu.
-#179648 by sun: Inject admin_menu into theme.
- Fixes several CSS bugs in various themes and also activation of admin_menu
- immediately after installation.
-#191213 by Standard: Fixed block info shouldn't contain the word "block".
-#187816 by sun: Fixed "Add" not translatable.
-#186218 by sun: Fixed admin menu icon too big in Safari.
-#182563 by sun: Fixed wrong datatype for array_search in _admin_menu_get_children().
-#183496 by sun: Fixed invalid argument supplied for foreach in admin_menu_copy_items().
-
-
-Admin Menu 5.x-1.1, 2007-10-10
-------------------------------
-#178876 by sun: Fixed 3rd-level submenus expand without hover over.
-#153455 by sun: Fixed add product node sub-elements are empty.
-Fixed path_to_theme() call breaking blocks page.
-#177582 by sun: Fixed bluebreeze theme compatibility.
-
-
-Admin Menu 5.x-1.0, 2007-09-06
-------------------------------
-#156952 by sun: Fixed admin menu inaccessible due to margins.
-#149229 by sun: Fixed admin menu not expanding in IE7.
-#172545 by sun: Use opacity instead of -moz-opacity.
-#132867 Fixed z-index too low.
-- Fixed admin menu block selectors to override any other theme styles.
-#155589 by sun: Added permission to access administration menu.
-- Fixed a PHP warning when there are no content types defined in the system, as
- node/add then has no child menu items.
-#155312 by sun: Fixed menu item tooltip clashes.
-Added support for custom stylesheets per theme.
-Removed 4.7.x compatibility.
-
-
-Admin Menu 4.7-1.3, 2007-03-30
-------------------------------
-#126601 Fixed Users can see inaccessible items.
-#121027 Fixed Page not found entries for menu-collapsed.png.
-
-
-Admin Menu 4.7-1.2, 2007-03-04
-------------------------------
-- Fixed menu item adjustments
-- Fixed IE / Safari support
-- Fixed base_path for IE support
-- Added create content options to content management menu
-
-
-Admin Menu 4.7-1.1, 2007-01-24
-------------------------------
-First stable release, compatible to Drupal 4.7.x and 5.x.
-
-
-Admin Menu 4.7-1.0, 2007-01-16
-------------------------------
-Initial release of admin_menu module. Already supporting Drupal 5.0.
diff --git a/README.txt b/README.txt
index 45131e7..9ddedd2 100644
--- a/README.txt
+++ b/README.txt
@@ -1,183 +1 @@
-
--- SUMMARY --
-
-The Administration menu module displays the entire administrative menu tree (and
-most local tasks) in a drop-down menu, providing administrators one- or
-two-click access to most pages. Other modules may also add menu links to the
-menu using hook_admin_menu_output_alter().
-
-For a full description of the module, visit the project page:
- http://drupal.org/project/admin_menu
-
-To submit bug reports and feature suggestions, or to track changes:
- http://drupal.org/project/issues/admin_menu
-
-
--- REQUIREMENTS --
-
-None.
-
-
--- INSTALLATION --
-
-* Install as usual, see http://drupal.org/node/70151 for further information.
-
-* You likely want to disable Toolbar module, since its output clashes with
- Administration menu.
-
-
--- CONFIGURATION --
-
-* Configure user permissions in Administration People Permissions
- admin_menu module:
-
- - access administration menu
-
- Users in roles with the "Access administration menu" permission will see
- the administration menu at the top of each page.
-
- - display drupal links
-
- Users in roles with the "Display drupal links" permission will receive
- links to drupal.org issue queues for all enabled contributed modules. The
- issue queue links appear under the administration menu icon.
-
- Note that the menu items displayed in the administration menu depend on the
- actual permissions of the viewing user. For example, the "People" menu item
- is not displayed to a user who is not a member of a role with the "Administer
- users" permission.
-
-* Customize the menu settings in Administration Configuration and modules
- Administration Administration menu.
-
-* To prevent administrative menu items from appearing twice, you may hide the
- "Management" menu block.
-
-
--- CUSTOMIZATION --
-
-* To override the default administration menu icon, you may:
-
- 1) Disable it via CSS in your theme:
-
- body #admin-menu-icon { display: none; }
-
- 2) Alter the image by overriding the theme function:
-
- Copy the entire theme_admin_menu_icon() function into your template.php,
- rename it to phptemplate_admin_menu_icon() or THEMENAME_admin_menu_icon(),
- and customize the output according to your needs.
-
- Remember that the output of the administration menu is cached. To see changes
- from your theme override function, you must clear your site cache (via
- the "Flush all caches" link on the menu).
-
-* To override the font size, add the following line to your theme's stylesheet:
-
- body #admin-menu { font-size: 10px; }
-
-
--- TROUBLESHOOTING --
-
-* If the menu does not display, check the following:
-
- - Are the "access administration menu" and "access administration pages"
- permissions enabled for the appropriate roles?
-
- - Does html.tpl.php of your theme output the $page_bottom variable?
-
-* If the menu is rendered behind a Flash movie object, add this property to your
- Flash object(s):
-
- <param name="wmode" value="transparent" />
-
- See http://drupal.org/node/195386 for further information.
-
-
--- FAQ --
-
-Q: When the administration menu module is enabled, blank space is added to the
- bottom of my theme. Why?
-
-A: This is caused by a long list of links to module issue queues at Drupal.org.
- Use Administer >> User management >> Permissions to disable the "display
- drupal links" permission for all appropriate roles. Note that since UID 1
- automatically receives all permissions, the list of issue queue links cannot
- be disabled for UID 1.
-
-
-Q: After upgrading to 6.x-1.x, the menu disappeared. Why?
-
-A: You may need to regenerate your menu. Visit
- http://example.com/admin/build/modules to regenerate your menu (substitute
- your site name for example.com).
-
-
-Q: Can I configure the administration menu module to display another menu (like
- the Navigation menu, for instance)?
-
-A: No. As the name implies, administration menu module is for administrative
- menu links only. However, you can copy and paste the contents of
- admin_menu.css into your theme's stylesheet and replace #admin-menu with any
- other menu block id (#block-menu-1, for example).
-
-
-Q: Sometimes, the user counter displays a lot of anonymous users, but no spike
- of users or requests appear in Google Analytics or other tracking tools.
-
-A: If your site was concurrently spidered by search-engine robots, it may have
- a significant number of anonymous users for a short time. Most web tracking
- tools like Google Analytics automatically filter out these requests.
-
-
-Q: I enabled "Aggregate and compress CSS files", but admin_menu.css is still
- there. Is this normal?
-
-A: Yes, this is the intended behavior. the administration menu module only loads
- its stylesheet as needed (i.e., on page requests by logged-on, administrative
- users).
-
-
-Q: Why are sub-menus not visible in Opera?
-
-A: In the Opera browser preferences under "web pages" there is an option to fit
- to width. By disabling this option, sub-menus in the administration menu
- should appear.
-
-
-Q: How can the administration menu be hidden on certain pages?
-
-A: You can suppress it by simply calling the following function in PHP:
-
- module_invoke('admin_menu', 'suppress');
-
- However, this needs to happen as early as possible in the page request, so
- placing it in the theming layer (resp. a page template file) is too late.
- Ideally, the function is called in hook_init() in a custom module. If you do
- not have a custom module, placing it into some conditional code at the top of
- template.php may work out, too.
-
-
--- CONTACT --
-
-Current maintainers:
-* Daniel F. Kudwien (sun) - http://drupal.org/user/54136
-* Peter Wolanin (pwolanin) - http://drupal.org/user/49851
-* Stefan M. Kudwien (smk-ka) - http://drupal.org/user/48898
-* Dave Reid (Dave Reid) - http://drupal.org/user/53892
-
-Major rewrite for Drupal 6 by Peter Wolanin (pwolanin).
-
-This project has been sponsored by:
-* UNLEASHED MIND
- Specialized in consulting and planning of Drupal powered sites, UNLEASHED
- MIND offers installation, development, theming, customization, and hosting
- to get you started. Visit http://www.unleashedmind.com for more information.
-
-* Lullabot
- Friendly Drupal experts providing professional consulting & education
- services. Visit http://www.lullabot.com for more information.
-
-* Acquia
- Commercially Supported Drupal. Visit http://acquia.com for more information.
-
+See major version branches.
diff --git a/admin_devel/admin_devel.info b/admin_devel/admin_devel.info
deleted file mode 100644
index 314729f..0000000
--- a/admin_devel/admin_devel.info
+++ /dev/null
@@ -1,5 +0,0 @@
-name = Administration Development tools
-description = Administration and debugging functionality for developers and site builders.
-package = Administration
-core = 8.x
-scripts[] = admin_devel.js
diff --git a/admin_devel/admin_devel.js b/admin_devel/admin_devel.js
deleted file mode 100644
index 833197a..0000000
--- a/admin_devel/admin_devel.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function($) {
-
-/**
- * jQuery debugging helper.
- *
- * Invented for Dreditor.
- *
- * @usage
- * $.debug(var [, name]);
- * $variable.debug( [name] );
- */
-jQuery.extend({
- debug: function () {
- // Setup debug storage in global window. We want to look into it.
- window.debug = window.debug || [];
-
- args = jQuery.makeArray(arguments);
- // Determine data source; this is an object for $variable.debug().
- // Also determine the identifier to store data with.
- if (typeof this == 'object') {
- var name = (args.length ? args[0] : window.debug.length);
- var data = this;
- }
- else {
- var name = (args.length > 1 ? args.pop() : window.debug.length);
- var data = args[0];
- }
- // Store data.
- window.debug[name] = data;
- // Dump data into Firebug console.
- if (typeof console != 'undefined') {
- console.log(name, data);
- }
- return this;
- }
-});
-// @todo Is this the right way?
-jQuery.fn.debug = jQuery.debug;
-
-})(jQuery);
diff --git a/admin_devel/admin_devel.module b/admin_devel/admin_devel.module
deleted file mode 100644
index 5884f54..0000000
--- a/admin_devel/admin_devel.module
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/**
- * @file
- * Administration and debugging functionality for developers and site builders.
- */
-
-/**
- * Implements hook_form_FORMID_alter().
- */
-function admin_devel_form_admin_menu_theme_settings_alter(&$form, &$form_state) {
- $form['actions']['wipe_rebuild'] = array(
- '#type' => 'submit',
- '#value' => t('Rebuild system links'),
- '#submit' => array('admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit'),
- // @todo Not necessarily ready for mass-consumption yet.
- '#access' => FALSE,
- );
-}
-
-/**
- * Form submit handler to wipe and rebuild all 'module' = 'system' menu links.
- */
-function admin_devel_form_admin_menu_theme_settings_alter_rebuild_submit($form, &$form_state) {
- // Delete all auto-generated menu links derived from menu router items.
- db_delete('menu_links')
- ->condition('module', 'system')
- ->execute();
- // Rebuild menu links from current menu router items.
- menu_rebuild();
-
- drupal_set_message(t('System links derived from menu router paths have been rebuilt.'));
-}
diff --git a/admin_menu-rtl.css b/admin_menu-rtl.css
deleted file mode 100644
index 6004de5..0000000
--- a/admin_menu-rtl.css
+++ /dev/null
@@ -1,50 +0,0 @@
-
-#admin-menu {
- direction: rtl;
- text-align: right;
-}
-#admin-menu li.admin-menu-action {
- float: left;
-}
-#admin-menu li.admin-menu-action a {
- border-left: none;
- border-right: 1px solid #323232;
-}
-
-/* All lists */
-#admin-menu ul a {
- border-left: 1px solid #323232;
- border-right: 0;
- padding: 4px 8px;
- text-align: right;
-}
-
-/* All list items */
-#admin-menu li {
- float: right;
- position: relative;
-}
-#admin-menu li li {
- position: static;
-}
-
-/* Second-level lists */
-#admin-menu li ul {
- right: 0;
-}
-
-/* Third-and-above-level lists */
-#admin-menu li li.expandable ul {
- margin: -20px 160px 0 0;
-}
-
-/* Lists nested under hovered list items */
-#admin-menu li.admin-menu-action:hover ul {
- left: 0 !important;
- right: auto;
-}
-
-/* Second-and-more-level hovering */
-#admin-menu li li.expandable {
- background: #45454A url(images/arrow-rtl.png) no-repeat 5px 7px;
-}
diff --git a/admin_menu.api.php b/admin_menu.api.php
deleted file mode 100644
index f7f7728..0000000
--- a/admin_menu.api.php
+++ /dev/null
@@ -1,87 +0,0 @@
-<?php
-
-/**
- * @file
- * API documentation for Administration menu.
- */
-
-/**
- * Provide expansion arguments for dynamic menu items.
- *
- * The map items must be keyed by the dynamic path to expand, i.e. a menu path
- * containing one or more '%' placeholders. Each map item may have the following
- * properties:
- * - parent: The parent menu path to link the expanded items to.
- * - arguments: An array of argument sets that will be used in the expansion.
- * Each set consists of an array of one or more placeholders, which again is
- * an array of possible expansion values. Upon expansion, each argument is
- * combined with every other argument from the set (technically, the cartesian
- * product of all arguments). The expansion values may be empty; that is, you
- * do not need to insert logic to skip map items for which no values exist,
- * since Administration menu will take care of that.
- * - hide: (optional) Used to hide another menu path, usually a superfluous
- * "List" item.
- *
- * @see admin_menu.map.inc
- */
-function hook_admin_menu_map() {
- // Expand content types below Structure > Content types.
- // The key denotes the dynamic path to expand to multiple menu items.
- $map['admin/structure/types/manage/%node_type'] = array(
- // Link generated items directly to the "Content types" item.
- 'parent' => 'admin/structure/types',
- // Hide the "List" item, as this expansion will expose all available
- // options.
- 'hide' => 'admin/structure/types/list',
- // Create expansion arguments for the '%node_type' placeholder.
- 'arguments' => array(
- array(
- '%node_type' => array_keys(node_type_get_types()),
- ),
- ),
- );
- return $map;
-}
-
-/**
- * Alter content in Administration menu bar before it is rendered.
- *
- * @param $content
- * A structured array suitable for drupal_render(), at the very least
- * containing the keys 'menu' and 'links'. Most implementations likely want
- * to alter or add to 'links'.
- *
- * $content['menu'] contains the HTML representation of the 'admin_menu' menu
- * tree.
- * @see admin_menu_menu_alter()
- *
- * $content['links'] contains additional top-level links in the Administration
- * menu, such as the icon menu or the logout link. You can add more items here
- * or play with the #weight attribute to customize them.
- * @see theme_admin_menu_links()
- * @see admin_menu_links_icon()
- * @see admin_menu_links_user()
- */
-function hook_admin_menu_output_alter(&$content) {
- // Add new top-level item.
- $content['menu']['myitem'] = array(
- '#title' => t('My item'),
- // #attributes are used for list items (LI).
- '#attributes' => array('class' => array('mymodule-myitem')),
- '#href' => 'mymodule/path',
- // #options are passed to l(). Note that you can apply 'attributes' for
- // links (A) here.
- '#options' => array(
- 'query' => drupal_get_destination(),
- ),
- // #weight controls the order of links in the resulting item list.
- '#weight' => 50,
- );
- // Add link to manually run cron.
- $content['menu']['myitem']['cron'] = array(
- '#title' => t('Run cron'),
- '#access' => user_access('administer site configuration'),
- '#href' => 'admin/reports/status/run-cron',
- );
-}
-
diff --git a/admin_menu.color.css b/admin_menu.color.css
deleted file mode 100644
index f2491cd..0000000
--- a/admin_menu.color.css
+++ /dev/null
@@ -1,46 +0,0 @@
-
-/**
- * @file
- * Administration menu color override.
- */
-
-#admin-menu {
- background-color: #911;
- background-image: url(images/bkg-red.png);
-}
-#admin-menu li.admin-menu-action a {
- border-left-color: #a91f1f;
-}
-
-/* All lists */
-#admin-menu ul a {
- border-right-color: #a91f1f;
-}
-#admin-menu ul li.admin-menu-tab a {
- border-right-color: #52565E;
-}
-#admin-menu li li a {
- border-top-color: #801f1f;
-}
-
-/* All list items */
-#admin-menu li li {
- background-color: #991f1f;
-}
-
-/* Second-and-more-level hovering */
-#admin-menu li li.expandable {
- background-color: #b93f3f;
-}
-#admin-menu li li:hover,
-#admin-menu li li.iehover {
- background-color: #690f0f;
-}
-#admin-menu li li.expandable:hover a,
-#admin-menu li li.expandable:hover li.expandable:hover a {
- border-color: #801f1f;
-}
-#admin-menu li li.expandable:hover li a,
-#admin-menu li li.expandable:hover li.expandable:hover li a {
- border-color: #801f1f;
-}
diff --git a/admin_menu.css b/admin_menu.css
deleted file mode 100644
index 28c01cd..0000000
--- a/admin_menu.css
+++ /dev/null
@@ -1,209 +0,0 @@
-
-/**
- * @file
- * Administration menu.
- *
- * Implementation of Sons of Suckerfish Dropdowns.
- *
- * @see www.htmldog.com/articles/suckerfish
- */
-
-#admin-menu {
- background: #101010 url(images/bkg.png) bottom left repeat-x;
- font-size: 9px;
- font-family: "lucida grande", tahoma, verdana, arial, sans-serif;
- left: 0;
- position: absolute;
- text-align: left;
- top: 0;
- width: 100%;
-}
-#admin-menu-wrapper {
- overflow: hidden;
-}
-#admin-menu li.admin-menu-icon a {
- padding: 1px 8px 4px;
-}
-#admin-menu li.admin-menu-icon ul a {
- padding: 4px 8px;
-}
-#admin-menu li.admin-menu-icon img {
- vertical-align: bottom;
-}
-#admin-menu li.admin-menu-users a {
- background: transparent url(images/icon_users.png) 90% center no-repeat;
- padding-right: 22px;
-}
-#admin-menu li.admin-menu-action {
- float: right;
-}
-#admin-menu li.admin-menu-action a {
- border-left: 1px solid #323232;
- border-right: none;
-}
-body.admin-menu {
- margin-top: 20px !important;
-}
-
-/* All lists */
-#admin-menu,
-#admin-menu ul {
- line-height: 1.4em;
- list-style: none;
- margin: 0;
- padding: 0;
- z-index: 999;
-}
-#admin-menu ul {
- position: static;
-}
-#admin-menu ul a {
- background: transparent none;
- border-bottom: none;
- border-right: 1px solid #323232;
- color: #EEE;
- display: block;
- font-weight: normal;
- padding: 4px 8px;
- text-align: left;
- text-decoration: none;
-}
-#admin-menu ul li.admin-menu-tab a {
- border-right: 1px solid #52565E;
-}
-#admin-menu li li a {
- border-right: none;
- border-top: 1px solid #323232;
-}
-
-/* All list items */
-#admin-menu li {
- background-image: none;
- float: left;
- height: 100%;
- list-style-image: none;
- list-style-type: none;
- margin: 0 !important;
- padding: 0;
-}
-#admin-menu li.admin-menu-tab {
- background: url(images/bkg_tab.png) repeat-x left bottom;
- padding-bottom: 1px;
-}
-#admin-menu li li {
- background: #202020;
- filter: Alpha(opacity=88);
- opacity: 0.88;
- width: 160px; /* Required for Opera */
-}
-#admin-menu li li li {
- filter: Alpha(opacity=100);
- opacity: 1;
-}
-
-/* Second-level lists */
-/* Note: We must hide sub-lists or scrollbars might appear (display: none is not read by screen readers). */
-#admin-menu li ul {
- background: none;
- display: none;
- left: -999em;
- line-height: 1.2em;
- margin: 0;
- position: absolute;
- width: 160px;
-}
-
-/* Third-and-above-level lists */
-#admin-menu li li.expandable ul {
- margin: -20px 0 0 160px;
-}
-
-#admin-menu li:hover ul ul,
-#admin-menu li:hover ul ul ul,
-#admin-menu li:hover ul ul ul ul,
-#admin-menu li:hover ul ul ul ul ul,
-#admin-menu li.iehover ul ul,
-#admin-menu li.iehover ul ul ul,
-#admin-menu li.iehover ul ul ul ul,
-#admin-menu li.iehover ul ul ul ul ul {
- display: none;
- left: -999em;
-}
-
-/* Lists nested under hovered list items */
-#admin-menu li:hover ul,
-#admin-menu li li:hover ul,
-#admin-menu li li li:hover ul,
-#admin-menu li li li li:hover ul,
-#admin-menu li li li li li:hover ul,
-#admin-menu li.iehover ul,
-#admin-menu li li.iehover ul,
-#admin-menu li li li.iehover ul,
-#admin-menu li li li li.iehover ul,
-#admin-menu li li li li li.iehover ul {
- display: block;
- left: auto;
-}
-#admin-menu li.admin-menu-action:hover ul {
- right: 0;
-}
-
-/* Second-and-more-level hovering */
-#admin-menu li li.expandable {
- background: #45454A url(images/arrow.png) no-repeat 145px 6px;
-}
-#admin-menu li li:hover,
-#admin-menu li li.iehover {
- background-color: #111;
-}
-#admin-menu li li:hover a,
-#admin-menu li li:hover li:hover a,
-#admin-menu li li:hover li:hover li:hover a {
- color: #FFF;
-}
-#admin-menu li li.expandable:hover a,
-#admin-menu li li.expandable:hover li.expandable:hover a {
- border-color: #444;
- color: #EEE;
-}
-#admin-menu li li.expandable:hover li a,
-#admin-menu li li.expandable:hover li.expandable:hover li a {
- border-color: #323232;
-}
-#admin-menu li li:hover li a,
-#admin-menu li li.iehover li a,
-#admin-menu li li.iehover li.iehover li a {
- color: #EEE;
-}
-#admin-menu li li.iehover a,
-#admin-menu li li.iehover li.iehover a,
-#admin-menu li li.iehover li.iehover li.iehover a {
- color: #FFF;
- width: 90%; /* IE */
-}
-
-/* #210615: Mozilla on Mac fix */
-html.js fieldset.collapsible div.fieldset-wrapper {
- overflow: visible;
-}
-
-/* Hide the menu on print output. */
-@media print {
- #admin-menu {
- display: none !important;
- }
- body.admin-menu {
- margin-top: 0 !important;
- }
-}
-
-/**
- * Tweaks permissions, if enabled.
- */
-tr.admin-menu-tweak-permissions-processed {
- cursor: pointer;
- cursor: hand;
-}
-tr.admin-menu-tweak-permissions-processed td.module {
- border-top: 0;
-}
diff --git a/admin_menu.inc b/admin_menu.inc
deleted file mode 100644
index 3d213bb..0000000
--- a/admin_menu.inc
+++ /dev/null
@@ -1,815 +0,0 @@
-<?php
-
-/**
- * @file
- * Menu builder functions for Administration menu.
- */
-
-/**
- * Build the full administration menu tree from static and expanded dynamic items.
- *
- * @param $menu_name
- * The menu name to use as base for the tree.
- */
-function admin_menu_tree($menu_name) {
- // Get placeholder expansion arguments from hook_admin_menu_map()
- // implementations.
- module_load_include('inc', 'admin_menu', 'admin_menu.map');
- $expand_map = module_invoke_all('admin_menu_map');
- // Allow modules to alter the expansion map.
- drupal_alter('admin_menu_map', $expand_map);
-
- $new_map = array();
- $hidden = array();
- foreach ($expand_map as $path => $data) {
- // Convert named placeholders to anonymous placeholders, since the menu
- // system stores paths using anonymous placeholders.
- $replacements = array_fill_keys(array_keys($data['arguments'][0]), '%');
- $data['parent'] = strtr($data['parent'], $replacements);
- $new_map[strtr($path, $replacements)] = $data;
-
- // Collect paths to hide.
- if (isset($data['hide'])) {
- $hidden[strtr($data['hide'], $replacements)] = 1;
- }
- }
- $expand_map = $new_map;
- unset($new_map);
-
- // Retrieve dynamic menu link tree for the expansion mappings.
- $tree_dynamic = admin_menu_tree_dynamic($expand_map);
-
- // Merge local tasks with static menu tree.
- $tree = menu_tree_all_data($menu_name);
- admin_menu_merge_tree($tree, $tree_dynamic, array(), $hidden);
-
- return $tree;
-}
-
-/**
- * Load menu link trees for router paths containing dynamic arguments.
- *
- * @param $expand_map
- * An array containing menu router path placeholder expansion argument
- * mappings.
- *
- * @return
- * An associative array whose keys are the parent paths of the menu router
- * paths given in $expand_map as well as the parent paths of any child link
- * deeper down the tree. The parent paths are used in admin_menu_merge_tree()
- * to check whether anything needs to be merged.
- *
- * @see hook_admin_menu_map()
- */
-function admin_menu_tree_dynamic(array $expand_map) {
- $p_columns = array();
- for ($i = 1; $i <= MENU_MAX_DEPTH; $i++) {
- $p_columns[] = 'p' . $i;
- }
-
- // Fetch p* columns for all router paths to expand.
- $router_paths = array_keys($expand_map);
- $plids = db_select('menu_links', 'ml')
- ->fields('ml', $p_columns)
- ->condition('router_path', $router_paths)
- ->execute()
- ->fetchAll(PDO::FETCH_ASSOC);
-
- // Unlikely, but possible.
- if (empty($plids)) {
- return array();
- }
-
- // Use queried plid columns to query sub-trees for the router paths.
- $query = db_select('menu_links', 'ml');
- $query->join('menu_router', 'm', 'ml.router_path = m.path');
- $query
- ->fields('ml')
- ->fields('m', array_diff(drupal_schema_fields_sql('menu_router'), drupal_schema_fields_sql('menu_links')));
-
- // The retrieved menu link trees have to be ordered by depth, so parents
- // always come before their children for the storage logic below.
- foreach ($p_columns as $column) {
- $query->orderBy($column, 'ASC');
- }
-
- $db_or = db_or();
- foreach ($plids as $path_plids) {
- $db_and = db_and();
- // plids with value 0 may be ignored.
- foreach (array_filter($path_plids) as $column => $plid) {
- $db_and->condition($column, $plid);
- }
- $db_or->condition($db_and);
- }
- $query->condition($db_or);
- $result = $query
- ->execute()
- ->fetchAllAssoc('mlid', PDO::FETCH_ASSOC);
-
- // Store dynamic links grouped by parent path for later merging and assign
- // placeholder expansion arguments.
- $tree_dynamic = array();
- foreach ($result as $mlid => $link) {
- // If contained in $expand_map, then this is a (first) parent, and we need
- // to store by the defined 'parent' path for later merging, as well as
- // provide the expansion map arguments to apply to the dynamic tree.
- if (isset($expand_map[$link['path']])) {
- $parent_path = $expand_map[$link['path']]['parent'];
- $link['expand_map'] = $expand_map[$link['path']]['arguments'];
- }
- // Otherwise, just store this link keyed by its parent path; the expand_map
- // is automatically derived from parent paths.
- else {
- $parent_path = $result[$link['plid']]['path'];
- }
-
- $tree_dynamic[$parent_path][] = $link;
- }
-
- return $tree_dynamic;
-}
-
-/**
- * Walk through the entire menu tree and merge in expanded dynamic menu links.
- *
- * @param &$tree
- * A menu tree structure as returned by menu_tree_all_data().
- * @param $tree_dynamic
- * A dynamic menu tree structure as returned by admin_menu_tree_dynamic().
- * @param $expand_map
- * An array containing menu router path placeholder expansion argument
- * mappings.
- * @param $hidden
- * An array containing links to hide, keyed by path.
- *
- * @see hook_admin_menu_map()
- * @see admin_menu_tree_dynamic()
- * @see menu_tree_all_data()
- */
-function admin_menu_merge_tree(array &$tree, array $tree_dynamic, array $expand_map, array $hidden) {
- foreach ($tree as $key => $data) {
- $path = $data['link']['router_path'];
-
- // Recurse into regular menu tree.
- if ($tree[$key]['below']) {
- admin_menu_merge_tree($tree[$key]['below'], $tree_dynamic, $expand_map, $hidden);
- }
- // Hide link if requested, but only if there is no dynamic tree data for it.
- elseif (isset($hidden[$path]) && !isset($tree_dynamic[$path])) {
- $tree[$key]['link']['access'] = FALSE;
- continue;
- }
- // Nothing to merge, if this parent path is not in our dynamic tree.
- if (!isset($tree_dynamic[$path])) {
- continue;
- }
-
- // Add expanded dynamic items.
- foreach ($tree_dynamic[$path] as $link) {
- // If the dynamic item has custom placeholder expansion parameters set,
- // use them, otherwise keep current.
- if (isset($link['expand_map'])) {
- // If there are currently no expansion parameters, we may use the new
- // set immediately.
- if (empty($expand_map)) {
- $current_expand_map = $link['expand_map'];
- }
- else {
- // Otherwise we need to filter out elements that differ from the
- // current set, i.e. that are not in the same path.
- $current_expand_map = array();
- foreach ($expand_map as $arguments) {
- foreach ($arguments as $placeholder => $value) {
- foreach ($link['expand_map'] as $new_arguments) {
- // Skip the new argument if it doesn't contain the current
- // replacement placeholders or if their values differ.
- if (!isset($new_arguments[$placeholder]) || $new_arguments[$placeholder] != $value) {
- continue;
- }
- $current_expand_map[] = $new_arguments;
- }
- }
- }
- }
- }
- else {
- $current_expand_map = $expand_map;
- }
-
- // Skip dynamic items without expansion parameters.
- if (empty($current_expand_map)) {
- continue;
- }
-
- // Expand anonymous to named placeholders.
- // @see _menu_load_objects()
- $path_args = explode('/', $link['path']);
- $load_functions = unserialize($link['load_functions']);
- foreach ($load_functions as $index => $function) {
- if ($function) {
- if (is_array($function)) {
- list($function,) = each($function);
- }
- // Add the loader function name minus "_load".
- $placeholder = '%' . substr($function, 0, -5);
- $path_args[$index] = $placeholder;
- }
- }
- $path_dynamic = implode('/', $path_args);
-
- // Create new menu items using expansion arguments.
- foreach ($current_expand_map as $arguments) {
- // Create the cartesian product for all arguments and create new
- // menu items for each generated combination thereof.
- foreach (admin_menu_expand_args($arguments) as $replacements) {
- $newpath = strtr($path_dynamic, $replacements);
- // Skip this item, if any placeholder could not be replaced.
- // Faster than trying to invoke _menu_translate().
- if (strpos($newpath, '%') !== FALSE) {
- continue;
- }
- $map = explode('/', $newpath);
- $item = admin_menu_translate($link, $map);
- // Skip this item, if the current user does not have access.
- if (empty($item)) {
- continue;
- }
- // Build subtree using current replacement arguments.
- $new_expand_map = array();
- foreach ($replacements as $placeholder => $value) {
- $new_expand_map[$placeholder] = array($value);
- }
- admin_menu_merge_tree($item, $tree_dynamic, array($new_expand_map), $hidden);
- $tree[$key]['below'] += $item;
- }
- }
- }
- // Sort new subtree items.
- ksort($tree[$key]['below']);
- }
-}
-
-/**
- * Translate an expanded router item into a menu link suitable for rendering.
- *
- * @param $router_item
- * A menu router item.
- * @param $map
- * A path map with placeholders replaced.
- */
-function admin_menu_translate($router_item, $map) {
- _menu_translate($router_item, $map, TRUE);
-
- // Run through hook_translated_menu_link_alter() to add devel information,
- // if configured.
- $router_item['menu_name'] = 'management';
- // @todo Invoke as usual like _menu_link_translate().
- admin_menu_translated_menu_link_alter($router_item, NULL);
-
- if ($router_item['access']) {
- // Override mlid to make this item unique; since these items are expanded
- // from dynamic items, the mlid is always the same, so each item would
- // replace any other.
- // @todo Doing this instead leads to plenty of duplicate links below
- // admin/structure/menu; likely a hidden recursion problem.
- // $router_item['mlid'] = $router_item['href'] . $router_item['mlid'];
- $router_item['mlid'] = $router_item['href'];
- // Turn menu callbacks into regular menu items to make them visible.
- if ($router_item['type'] == MENU_CALLBACK) {
- $router_item['type'] = MENU_NORMAL_ITEM;
- }
-
- // @see _menu_tree_check_access()
- $key = (50000 + $router_item['weight']) . ' ' . $router_item['title'] . ' ' . $router_item['mlid'];
- return array($key => array(
- 'link' => $router_item,
- 'below' => array(),
- ));
- }
-
- return array();
-}
-
-/**
- * Create the cartesian product of multiple varying sized argument arrays.
- *
- * @param $arguments
- * A two dimensional array of arguments.
- *
- * @see hook_admin_menu_map()
- */
-function admin_menu_expand_args($arguments) {
- $replacements = array();
-
- // Initialize line cursors, move out array keys (placeholders) and assign
- // numeric keys instead.
- $i = 0;
- $placeholders = array();
- $new_arguments = array();
- foreach ($arguments as $placeholder => $values) {
- // Skip empty arguments.
- if (empty($values)) {
- continue;
- }
- $cursor[$i] = 0;
- $placeholders[$i] = $placeholder;
- $new_arguments[$i] = $values;
- $i++;
- }
- $arguments = $new_arguments;
- unset($new_arguments);
-
- if ($rows = count($arguments)) {
- do {
- // Collect current argument from each row.
- $row = array();
- for ($i = 0; $i < $rows; ++$i) {
- $row[$placeholders[$i]] = $arguments[$i][$cursor[$i]];
- }
- $replacements[] = $row;
-
- // Increment cursor position.
- $j = $rows - 1;
- $cursor[$j]++;
- while (!array_key_exists($cursor[$j], $arguments[$j])) {
- // No more arguments left: reset cursor, go to next line and increment
- // that cursor instead. Repeat until argument found or out of rows.
- $cursor[$j] = 0;
- if (--$j < 0) {
- // We're done.
- break 2;
- }
- $cursor[$j]++;
- }
- } while (1);
- }
-
- return $replacements;
-}
-
-/**
- * Build the administration menu as renderable menu links.
- *
- * @param $tree
- * A data structure representing the administration menu tree as returned from
- * menu_tree_all_data().
- *
- * @return
- * The complete administration menu, suitable for theme_admin_menu_links().
- *
- * @see theme_admin_menu_links()
- * @see admin_menu_menu_alter()
- */
-function admin_menu_links_menu($tree) {
- $links = array();
- foreach ($tree as $data) {
- // Skip invisible items.
- if (!$data['link']['access'] || $data['link']['type'] == MENU_CALLBACK) {
- continue;
- }
- // Hide 'Administer' and make child links appear on this level.
- // @todo Make this configurable.
- if ($data['link']['router_path'] == 'admin') {
- if ($data['below']) {
- $links = array_merge($links, admin_menu_links_menu($data['below']));
- }
- continue;
- }
- // Remove local tasks on 'admin'.
- if (in_array($data['link']['router_path'], array('admin/by-task', 'admin/by-module'))) {
- continue;
- }
- // Omit alias lookups.
- $data['link']['localized_options']['alias'] = TRUE;
- // Remove description to prevent mouseover tooltip clashes.
- unset($data['link']['localized_options']['attributes']['title']);
-
- $links[$data['link']['mlid']] = array(
- '#title' => $data['link']['title'],
- '#href' => $data['link']['href'],
- '#options' => $data['link']['localized_options'],
- '#weight' => $data['link']['weight'],
- );
- if ($data['below']) {
- $links[$data['link']['mlid']] += admin_menu_links_menu($data['below']);
- }
- }
- return $links;
-}
-
-/**
- * Build icon menu links; mostly containing maintenance helpers.
- *
- * @see theme_admin_menu_links()
- */
-function admin_menu_links_icon() {
- $destination = drupal_get_destination();
-
- $links = array(
- '#theme' => 'admin_menu_links',
- '#weight' => -100,
- );
- $links['icon'] = array(
- '#title' => theme('admin_menu_icon'),
- '#attributes' => array('class' => array('admin-menu-icon')),
- '#href' => '<front>',
- '#options' => array(
- 'html' => TRUE,
- ),
- );
- // Add link to manually run cron.
- $links['icon']['cron'] = array(
- '#title' => t('Run cron'),
- '#weight' => 50,
- '#access' => user_access('administer site configuration'),
- '#href' => 'admin/reports/status/run-cron',
- );
- // Add link to run update.php.
- $links['icon']['update'] = array(
- '#title' => t('Run updates'),
- '#weight' => 50,
- '#access' => ($GLOBALS['user']->uid == 1 || !empty($GLOBALS['update_free_access'])),
- '#href' => base_path() . 'update.php',
- '#options' => array(
- 'external' => TRUE,
- ),
- );
- // Add link to drupal.org.
- $links['icon']['drupal.org'] = array(
- '#title' => 'Drupal.org',
- '#weight' => 100,
- '#access' => user_access('display drupal links'),
- '#href' => 'http://drupal.org',
- );
- // Add links to project issue queues.
- foreach (module_list(FALSE, TRUE) as $module) {
- $info = drupal_parse_info_file(drupal_get_path('module', $module) . '/' . $module . '.info');
- if (!isset($info['project']) || isset($links['icon']['drupal.org'][$info['project']])) {
- continue;
- }
- $links['icon']['drupal.org'][$info['project']] = array(
- '#title' => t('@project issue queue', array('@project' => $info['name'])),
- '#weight' => ($info['project'] == 'drupal' ? -10 : 0),
- '#href' => 'http://drupal.org/project/issues/' . $info['project'],
- '#options' => array(
- 'query' => array('version' => (isset($info['core']) ? $info['core'] : 'All')),
- ),
- );
- }
- // Add items to flush caches.
- $links['icon']['flush-cache'] = array(
- '#title' => t('Flush all caches'),
- '#weight' => 20,
- '#access' => user_access('flush caches'),
- '#href' => 'admin_menu/flush-cache',
- '#options' => array(
- 'query' => $destination,
- ),
- );
- $caches = array(
- 'admin_menu' => t('Administration menu'),
- 'cache' => t('Cache tables'),
- 'menu' => t('Menu'),
- 'registry' => t('Class registry'),
- 'requisites' => t('Page requisites'),
- 'theme' => t('Theme registry'),
- );
- foreach ($caches as $arg => $title) {
- $links['icon']['flush-cache'][$arg] = array(
- '#title' => $title,
- '#href' => 'admin_menu/flush-cache/' . $arg,
- '#options' => array(
- 'query' => $destination,
- ),
- );
- }
- // Add link to toggle developer modules (performance).
- $saved_state = variable_get('admin_menu_devel_modules_enabled', NULL);
- $links['icon']['toggle-modules'] = array(
- '#title' => isset($saved_state) ? t('Enable developer modules') : t('Disable developer modules'),
- '#weight' => 88,
- '#access' => user_access('administer site configuration'),
- '#href' => 'admin_menu/toggle-modules',
- '#options' => array(
- 'query' => $destination,
- ),
- );
-
- // Add Devel module links.
- if (module_exists('devel')) {
- // Add variable editor.
- $links['icon']['devel-variables'] = array(
- '#title' => t('Variable editor'),
- '#weight' => 20,
- '#access' => user_access('access devel information'),
- '#href' => 'devel/variable',
- );
- }
-
- return $links;
-}
-
-/**
- * Build user/action links; mostly account information and links.
- *
- * @see theme_admin_menu_links()
- */
-function admin_menu_links_user() {
- $links = array(
- '#theme' => 'admin_menu_links',
- '#weight' => 100,
- );
- // Add link to show current authenticated/anonymous users.
- $links['user-counter'] = array(
- '#title' => admin_menu_get_user_count(),
- '#description' => t('Current anonymous / authenticated users'),
- '#weight' => -90,
- '#attributes' => array('class' => array('admin-menu-action', 'admin-menu-users')),
- '#href' => (user_access('administer users') ? 'admin/people/people' : 'user'),
- );
- $links['account'] = array(
- '#title' => $GLOBALS['user']->name,
- '#weight' => -99,
- '#attributes' => array('class' => array('admin-menu-action', 'admin-menu-account')),
- '#href' => 'user/' . $GLOBALS['user']->uid,
- );
- $links['logout'] = array(
- '#title' => t('Log out'),
- '#weight' => -100,
- '#attributes' => array('class' => array('admin-menu-action')),
- '#href' => 'user/logout',
- );
-
- // Add Devel module switch user links.
- $switch_links = module_invoke('devel', 'switch_user_list');
- if (!empty($switch_links) && count($switch_links) > 1) {
- foreach ($switch_links as $uid => $link) {
- $links['account'][$link['title']] = array(
- '#title' => $link['title'],
- '#description' => $link['attributes']['title'],
- '#href' => $link['href'],
- '#options' => array(
- 'query' => $link['query'],
- 'html' => !empty($link['html']),
- ),
- );
- }
- }
-
- return $links;
-}
-
-/**
- * Form builder function for module settings.
- */
-function admin_menu_theme_settings() {
- $form['admin_menu_margin_top'] = array(
- '#type' => 'checkbox',
- '#title' => t('Adjust top margin'),
- '#default_value' => variable_get('admin_menu_margin_top', 1),
- '#description' => t('Shifts the site output down by approximately 20 pixels from the top of the viewport. If disabled, absolute- or fixed-positioned page elements may be covered by the administration menu.'),
- );
- $form['admin_menu_position_fixed'] = array(
- '#type' => 'checkbox',
- '#title' => t('Keep menu at top of page'),
- '#default_value' => variable_get('admin_menu_position_fixed', 0),
- '#description' => t('Displays the administration menu always at the top of the browser viewport (even when scrolling the page).'),
- );
- // @todo Re-confirm this with latest browser versions.
- $form['admin_menu_position_fixed']['#description'] .= '<br /><strong>' . t('In some browsers, this setting may result in a malformed page, an invisible cursor, non-selectable elements in forms, or other issues.') . '</strong>';
-
- $form['tweaks'] = array(
- '#type' => 'fieldset',
- '#title' => t('Advanced settings'),
- );
- $form['tweaks']['admin_menu_tweak_modules'] = array(
- '#type' => 'checkbox',
- '#title' => t('Collapse module groups on the <a href="!modules-url">%modules</a> page', array(
- '%modules' => t('Modules'),
- '!modules-url' => url('admin/modules'),
- )),
- '#default_value' => variable_get('admin_menu_tweak_modules', 0),
- );
- if (module_exists('util')) {
- $form['tweaks']['admin_menu_tweak_modules']['#description'] .= '<br /><strong>' . t('If the Utility module was installed for this purpose, it can be safely disabled and uninstalled.') . '</strong>';
- }
- $form['tweaks']['admin_menu_tweak_permissions'] = array(
- '#type' => 'checkbox',
- '#title' => t('Collapse module groups on the <a href="@permissions-url">%permissions</a> page', array(
- '%permissions' => t('Permissions'),
- '@permissions-url' => url('admin/people/permissions'),
- )),
- '#default_value' => variable_get('admin_menu_tweak_permissions', 0),
- );
- $form['tweaks']['admin_menu_tweak_tabs'] = array(
- '#type' => 'checkbox',
- '#title' => t('Move local tasks into menu'),
- '#default_value' => variable_get('admin_menu_tweak_tabs', 0),
- '#description' => t('Moves the tabs on all pages into the administration menu. Only possible for themes using the CSS classes <code>tabs primary</code> and <code>tabs secondary</code>.'),
- );
-
- // Fetch all available modules manually, since module_list() only returns
- // currently enabled modules, which makes this setting pointless if developer
- // modules are currently disabled.
- $all_modules = array();
- $result = db_query("SELECT name, filename, info FROM {system} WHERE type = 'module' ORDER BY name ASC");
- foreach ($result as $module) {
- if (file_exists($module->filename)) {
- $info = unserialize($module->info);
- $all_modules[$module->name] = $info['name'];
- }
- }
- $devel_modules = variable_get('admin_menu_devel_modules', _admin_menu_developer_modules());
- $devel_modules = array_intersect_key($all_modules, array_flip($devel_modules));
- $form['tweaks']['admin_menu_devel_modules_skip'] = array(
- '#type' => 'checkboxes',
- '#title' => t('Developer modules to keep enabled'),
- '#default_value' => variable_get('admin_menu_devel_modules_skip', array()),
- '#options' => $devel_modules,
- '#access' => !empty($devel_modules),
- '#description' => t('The selected modules will not be disabled when the link %disable-developer-modules below the icon in the menu is invoked.', array(
- '%disable-developer-modules' => t('Disable developer modules'),
- )),
- );
-
- return system_settings_form($form);
-}
-
-/**
- * Implementation of hook_form_FORM_ID_alter().
- *
- * Extends Devel module with Administration menu developer settings.
- */
-function _admin_menu_form_devel_admin_settings_alter(&$form, $form_state) {
- // Shift system_settings_form buttons.
- $weight = isset($form['buttons']['#weight']) ? $form['buttons']['#weight'] : 0;
- $form['buttons']['#weight'] = $weight + 1;
-
- $form['admin_menu'] = array(
- '#type' => 'fieldset',
- '#title' => t('Administration menu settings'),
- '#collapsible' => TRUE,
- '#collapsed' => TRUE,
- );
- $display_options = array('mid', 'weight', 'pid');
- $display_options = array(0 => t('None'), 'mlid' => t('Menu link ID'), 'weight' => t('Weight'), 'plid' => t('Parent link ID'));
- $form['admin_menu']['admin_menu_display'] = array(
- '#type' => 'radios',
- '#title' => t('Display additional data for each menu item'),
- '#default_value' => variable_get('admin_menu_display', 0),
- '#options' => $display_options,
- '#description' => t('Display the selected items next to each menu item link.'),
- );
- $form['admin_menu']['admin_menu_show_all'] = array(
- '#type' => 'checkbox',
- '#title' => t('Display all menu items'),
- '#default_value' => variable_get('admin_menu_show_all', 0),
- '#description' => t('If enabled, all menu items are displayed regardless of your site permissions. <em>Note: Do not enable on a production site.</em>'),
- );
-}
-
-/**
- * Menu callback; Enable/disable developer modules.
- *
- * This can save up to 150ms on each uncached page request.
- */
-function admin_menu_toggle_modules() {
- $rebuild = FALSE;
- $saved_state = variable_get('admin_menu_devel_modules_enabled', NULL);
- if (isset($saved_state)) {
- // Re-enable modules that were enabled before.
- module_enable($saved_state);
- variable_del('admin_menu_devel_modules_enabled');
- drupal_set_message(t('Enabled these modules: !module-list.', array('!module-list' => implode(', ', $saved_state))));
- $rebuild = TRUE;
- }
- else {
- // Allow site admins to override this variable via settings.php.
- $devel_modules = variable_get('admin_menu_devel_modules', _admin_menu_developer_modules());
- // Store currently enabled modules in a variable.
- $devel_modules = array_intersect(module_list(FALSE, FALSE), $devel_modules);
- $devel_modules = array_diff($devel_modules, variable_get('admin_menu_devel_modules_skip', array()));
- if (!empty($devel_modules)) {
- variable_set('admin_menu_devel_modules_enabled', $devel_modules);
- // Disable developer modules.
- module_disable($devel_modules);
- drupal_set_message(t('Disabled these modules: !module-list.', array('!module-list' => implode(', ', $devel_modules))));
- $rebuild = TRUE;
- }
- else {
- drupal_set_message(t('No developer modules are enabled.'));
- }
- }
- if ($rebuild) {
- // Make sure everything is rebuilt, basically a combination of the calls
- // from system_modules() and system_modules_submit().
- drupal_theme_rebuild();
- menu_rebuild();
- cache_clear_all('schema', 'cache');
- cache_clear_all();
- drupal_clear_css_cache();
- drupal_clear_js_cache();
- // Synchronize to catch any actions that were added or removed.
- actions_synchronize();
- // Finally, flush admin_menu's cache.
- admin_menu_flush_caches();
- }
- drupal_goto();
-}
-
-/**
- * Helper function to return a default list of developer modules.
- */
-function _admin_menu_developer_modules() {
- return array(
- 'admin_devel',
- 'cache_disable',
- 'coder',
- 'content_copy',
- 'debug',
- 'delete_all',
- 'demo',
- 'devel',
- 'devel_node_access',
- 'devel_themer',
- 'field_ui',
- 'macro',
- 'form_controller',
- 'imagecache_ui',
- 'journal',
- 'rules_admin',
- 'stringoverrides',
- 'trace',
- 'upgrade_status',
- 'user_display_ui',
- 'util',
- 'views_ui',
- 'views_theme_wizard',
- );
-}
-
-/**
- * Flush all caches or a specific one.
- *
- * @param $name
- * (optional) Name of cache to flush.
- */
-function admin_menu_flush_cache($name = NULL) {
- switch ($name) {
- case 'admin_menu':
- admin_menu_flush_caches();
- break;
-
- case 'menu':
- menu_rebuild();
- break;
-
- case 'registry':
- registry_rebuild();
- // Fall-through to clear cache tables, since registry information is
- // usually the base for other data that is cached (e.g. SimpleTests).
-
- case 'cache':
- // Don't clear cache_form - in-progress form submissions may break.
- // Ordered so clearing the page cache will always be the last action.
- // @see drupal_flush_all_caches()
- $core = array('cache', 'cache_bootstrap', 'cache_filter', 'cache_page');
- $cache_tables = array_merge(module_invoke_all('flush_caches'), $core);
- foreach ($cache_tables as $table) {
- cache_clear_all('*', $table, TRUE);
- }
- break;
-
- case 'requisites':
- // Change query-strings on css/js files to enforce reload for all users.
- _drupal_flush_css_js();
-
- drupal_clear_css_cache();
- drupal_clear_js_cache();
- break;
-
- case 'theme':
- system_rebuild_theme_data();
- drupal_theme_rebuild();
- break;
-
- default:
- // Flush all caches; no need to re-implement this.
- module_load_include('inc', 'system', 'system.admin');
- $form = $form_state = array();
- system_clear_cache_submit($form, $form_state);
- break;
- }
- drupal_goto();
-}
-
-/**
- * Render an icon to display in the administration menu.
- *
- * @ingroup themeable
- */
-function theme_admin_menu_icon() {
- return '<img class="admin-menu-icon" src="' . (theme_get_setting('toggle_favicon') ? theme_get_setting('favicon') : base_path() . 'misc/favicon.ico') . '" width="16" height="16" alt="' . t('Home') . '" />';
-}
-
diff --git a/admin_menu.info b/admin_menu.info
deleted file mode 100644
index 0a91b91..0000000
--- a/admin_menu.info
+++ /dev/null
@@ -1,11 +0,0 @@
-name = Administration menu
-description = "Provides a dropdown menu to most administrative tasks and other common destinations (to users with the proper permissions)."
-package = Administration
-configure = admin/config/administration/admin_menu
-
-; Purposively added for feature development.
-version = 8.x-3.x-dev
-core = 8.x
-project = admin_menu
-
-files[] = tests/admin_menu.test
diff --git a/admin_menu.install b/admin_menu.install
deleted file mode 100644
index 61f3b7c..0000000
--- a/admin_menu.install
+++ /dev/null
@@ -1,99 +0,0 @@
-<?php
-
-/**
- * @file
- * Install, update, and uninstall functions for the admin menu module.
- */
-
-/**
- * Implements hook_schema().
- */
-function admin_menu_schema() {
- $schema['cache_admin_menu'] = drupal_get_schema_unprocessed('system', 'cache');
- $schema['cache_admin_menu']['description'] = 'Cache table for Administration menu to store client-side caching hashes.';
- return $schema;
-}
-
-/**
- * Implements hook_install().
- */
-function admin_menu_install() {
- // Increase the module weight, so admin_menu catches any alterations made by
- // other modules in hook_menu_alter().
- db_update('system')
- ->fields(array('weight' => 100))
- ->condition('type', 'module')
- ->condition('name', 'admin_menu')
- ->execute();
-}
-
-/**
- * Implements hook_uninstall().
- */
-function admin_menu_uninstall() {
- // Delete variables.
- variable_del('admin_menu_devel_modules');
- variable_del('admin_menu_devel_modules_enabled');
- variable_del('admin_menu_devel_modules_skip');
- variable_del('admin_menu_margin_top');
- variable_del('admin_menu_position_fixed');
- variable_del('admin_menu_tweak_modules');
- variable_del('admin_menu_tweak_tabs');
- variable_del('admin_menu_show_all');
- variable_del('admin_menu_display');
- variable_del('admin_menu_cache_server');
- variable_del('admin_menu_cache_client');
-}
-
-/**
- * Ensure that admin_menu is rebuilt after upgrading to D6.
- */
-function admin_menu_update_6000() {
- // Drop the {admin_menu} table in admin_menu_update_6000() on sites that used
- // one of the later patches in #132524.
- if (db_table_exists('admin_menu')) {
- db_drop_table('admin_menu');
- }
-}
-
-/**
- * Wipe and rebuild so we can switch the icon path to <front>.
- */
-function admin_menu_update_6001() {
- db_delete('menu_links')->condition('module', 'admin_menu')->execute();
- menu_cache_clear('admin_menu');
-}
-
-/**
- * Add {cache_admin_menu} table.
- */
-function admin_menu_update_7300() {
- if (!db_table_exists('cache_admin_menu')) {
- $schema = drupal_get_schema_unprocessed('system', 'cache');
- db_create_table('cache_admin_menu', $schema);
- }
-}
-
-/**
- * Increase the module weight.
- *
- * @see admin_menu_install()
- */
-function admin_menu_update_7302() {
- db_update('system')
- ->fields(array('weight' => 100))
- ->condition('type', 'module')
- ->condition('name', 'admin_menu')
- ->execute();
-}
-
-/**
- * Remove local tasks from {menu_links} table.
- */
-function admin_menu_update_7303() {
- db_delete('menu_router')
- ->condition('path', 'admin/%', 'LIKE')
- ->condition('type', MENU_IS_LOCAL_TASK, '&')
- ->execute();
-}
-
diff --git a/admin_menu.js b/admin_menu.js
deleted file mode 100644
index f8c730a..0000000
--- a/admin_menu.js
+++ /dev/null
@@ -1,232 +0,0 @@
-(function($) {
-
-Drupal.admin = Drupal.admin || {};
-Drupal.admin.behaviors = Drupal.admin.behaviors || {};
-Drupal.admin.hashes = Drupal.admin.hashes || {};
-
-/**
- * Core behavior for Administration menu.
- *
- * Test whether there is an administration menu is in the output and execute all
- * registered behaviors.
- */
-Drupal.behaviors.adminMenu = {
- attach: function (context, settings) {
- // Initialize settings.
- settings.admin_menu = $.extend({
- suppress: false,
- margin_top: false,
- position_fixed: false,
- tweak_modules: false,
- tweak_permissions: false,
- tweak_tabs: false,
- destination: '',
- basePath: settings.basePath,
- hash: 0,
- replacements: {}
- }, settings.admin_menu || {});
- // Check whether administration menu should be suppressed.
- if (settings.admin_menu.suppress) {
- return;
- }
- var $adminMenu = $('#admin-menu:not(.admin-menu-processed)', context);
- // Client-side caching; if administration menu is not in the output, it is
- // fetched from the server and cached in the browser.
- if (!$adminMenu.length && settings.admin_menu.hash) {
- Drupal.admin.getCache(settings.admin_menu.hash, function (response) {
- if (typeof response == 'string' && response.length > 0) {
- $('body', context).prepend(response);
- }
- var $adminMenu = $('#admin-menu:not(.admin-menu-processed)', context);
- // Apply our behaviors.
- Drupal.admin.attachBehaviors(context, settings, $adminMenu);
- });
- }
- // If the menu is in the output already, this means there is a new version.
- else {
- // Apply our behaviors.
- Drupal.admin.attachBehaviors(context, settings, $adminMenu);
- }
- }
-};
-
-/**
- * Collapse fieldsets on Modules page.
- */
-Drupal.behaviors.adminMenuCollapseModules = {
- attach: function (context, settings) {
- if (settings.admin_menu.tweak_modules) {
- $('#system-modules fieldset:not(.collapsed)', context).addClass('collapsed');
- }
- }
-};
-
-/**
- * Collapse modules on Permissions page.
- */
-Drupal.behaviors.adminMenuCollapsePermissions = {
- attach: function (context, settings) {
- if (settings.admin_menu.tweak_permissions) {
- // Freeze width of first column to prevent jumping.
- $('#permissions th:first', context).css({ width: $('#permissions th:first', context).width() });
- // Attach click handler.
- $('#permissions tr:has(td.module)', context).once('admin-menu-tweak-permissions', function () {
- var $module = $(this);
- $module.bind('click.admin-menu', function () {
- // @todo Replace with .nextUntil() in jQuery 1.4.
- $module.nextAll().each(function () {
- var $row = $(this);
- if ($row.is(':has(td.module)')) {
- return false;
- }
- $row.toggleClass('element-hidden');
- });
- });
- }).trigger('click.admin-menu');
- }
- }
-};
-
-/**
- * Apply margin to page.
- *
- * Note that directly applying marginTop does not work in IE. To prevent
- * flickering/jumping page content with client-side caching, this is a regular
- * Drupal behavior.
- */
-Drupal.behaviors.adminMenuMarginTop = {
- attach: function (context, settings) {
- if (!settings.admin_menu.suppress && settings.admin_menu.margin_top) {
- $('body:not(.admin-menu)', context).addClass('admin-menu');
- }
- }
-};
-
-/**
- * Retrieve content from client-side cache.
- *
- * @param hash
- * The md5 hash of the content to retrieve.
- * @param onSuccess
- * A callback function invoked when the cache request was successful.
- */
-Drupal.admin.getCache = function (hash, onSuccess) {
- if (Drupal.admin.hashes.hash !== undefined) {
- return Drupal.admin.hashes.hash;
- }
- $.ajax({
- cache: true,
- type: 'GET',
- dataType: 'text', // Prevent auto-evaluation of response.
- global: false, // Do not trigger global AJAX events.
- url: Drupal.settings.admin_menu.basePath.replace(/admin_menu/, 'js/admin_menu/cache/' + hash),
- success: onSuccess,
- complete: function (XMLHttpRequest, status) {
- Drupal.admin.hashes.hash = status;
- }
- });
-};
-
-/**
- * @defgroup admin_behaviors Administration behaviors.
- * @{
- */
-
-/**
- * Attach administrative behaviors.
- */
-Drupal.admin.attachBehaviors = function (context, settings, $adminMenu) {
- if ($adminMenu.length) {
- $adminMenu.addClass('admin-menu-processed');
- $.each(Drupal.admin.behaviors, function() {
- this(context, settings, $adminMenu);
- });
- }
-};
-
-/**
- * Apply 'position: fixed'.
- */
-Drupal.admin.behaviors.positionFixed = function (context, settings, $adminMenu) {
- if (settings.admin_menu.position_fixed) {
- $adminMenu.addClass('admin-menu-position-fixed');
- $adminMenu.css('position', 'fixed');
- }
-};
-
-/**
- * Move page tabs into administration menu.
- */
-Drupal.admin.behaviors.pageTabs = function (context, settings, $adminMenu) {
- if (settings.admin_menu.tweak_tabs) {
- $('ul.tabs.primary li', context).addClass('admin-menu-tab').appendTo('#admin-menu-wrapper > ul');
- $('ul.tabs.secondary', context).appendTo('#admin-menu-wrapper > ul > li.admin-menu-tab.active').removeClass('secondary');
- $('ul.tabs.primary', context).remove();
- }
-};
-
-/**
- * Perform dynamic replacements in cached menu.
- */
-Drupal.admin.behaviors.replacements = function (context, settings, $adminMenu) {
- for (var item in settings.admin_menu.replacements) {
- $(item, $adminMenu).html(settings.admin_menu.replacements[item]);
- }
-};
-
-/**
- * Inject destination query strings for current page.
- */
-Drupal.admin.behaviors.destination = function (context, settings, $adminMenu) {
- if (settings.admin_menu.destination) {
- $('a.admin-menu-destination', $adminMenu).each(function() {
- this.search += (!this.search.length ? '?' : '&') + Drupal.settings.admin_menu.destination;
- });
- }
-};
-
-/**
- * Apply JavaScript-based hovering behaviors.
- *
- * @todo This has to run last. If another script registers additional behaviors
- * it will not run last.
- */
-Drupal.admin.behaviors.hover = function (context, settings, $adminMenu) {
- // Hover emulation for IE 6.
- if ($.browser.msie && parseInt(jQuery.browser.version) == 6) {
- $('li', $adminMenu).hover(
- function () {
- $(this).addClass('iehover');
- },
- function () {
- $(this).removeClass('iehover');
- }
- );
- }
-
- // Delayed mouseout.
- $('li.expandable', $adminMenu).hover(
- function () {
- // Stop the timer.
- clearTimeout(this.sfTimer);
- // Display child lists.
- $('> ul', this)
- .css({left: 'auto', display: 'block'})
- // Immediately hide nephew lists.
- .parent().siblings('li').children('ul').css({left: '-999em', display: 'none'});
- },
- function () {
- // Start the timer.
- var uls = $('> ul', this);
- this.sfTimer = setTimeout(function () {
- uls.css({left: '-999em', display: 'none'});
- }, 400);
- }
- );
-};
-
-/**
- * @} End of "defgroup admin_behaviors".
- */
-
-})(jQuery);
diff --git a/admin_menu.map.inc b/admin_menu.map.inc
deleted file mode 100644
index 5cef2e3..0000000
--- a/admin_menu.map.inc
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-
-/**
- * @file
- * Implements hook_admin_menu_map() on behalf of core modules.
- *
- * @todo Replace all/most of those API functions with direct DB queries;
- * we only need the menu arguments (keys), not fully loaded objects.
- */
-
-/**
- * Implements hook_admin_menu_map() on behalf of Filter module.
- */
-function filter_admin_menu_map() {
- if (!user_access('administer filters')) {
- return;
- }
- $map['admin/config/content/formats/%filter_format'] = array(
- 'parent' => 'admin/config/content/formats',
- 'hide' => 'admin/config/content/formats/list',
- 'arguments' => array(
- array('%filter_format' => array_keys(filter_formats())),
- ),
- );
- return $map;
-}
-
-/**
- * Implements hook_admin_menu_map() on behalf of Menu module.
- */
-function menu_admin_menu_map() {
- if (!user_access('administer menu')) {
- return;
- }
- $map['admin/structure/menu/manage/%menu'] = array(
- 'parent' => 'admin/structure/menu',
- 'hide' => 'admin/structure/menu/list',
- 'arguments' => array(
- array('%menu' => array_keys(menu_get_menus())),
- ),
- );
- return $map;
-}
-
-/**
- * Implements hook_admin_menu_map() on behalf of Node module.
- */
-function node_admin_menu_map() {
- if (!user_access('administer content types')) {
- return;
- }
- $map['admin/structure/types/manage/%node_type'] = array(
- 'parent' => 'admin/structure/types',
- 'hide' => 'admin/structure/types/list',
- 'arguments' => array(
- array('%node_type' => array_keys(node_type_get_types())),
- ),
- );
- return $map;
-}
-
-/**
- * Implements hook_admin_menu_map() on behalf of Field UI module.
- */
-function field_ui_admin_menu_map() {
- $map = array();
- foreach (entity_get_info() as $obj_type => $info) {
- foreach ($info['bundles'] as $bundle_name => $bundle_info) {
- if (isset($bundle_info['admin'])) {
- $arguments = array();
- switch ($obj_type) {
- case 'comment':
- $fields = array();
- foreach (field_info_instances($obj_type, $bundle_name) as $field) {
- $fields[] = $field['field_name'];
- }
- // @todo Make Comment module expose the original node type bundle,
- // pretty please.
- if (drupal_substr($bundle_name, 0, 13) == 'comment_node_') {
- $bundle_name = drupal_substr($bundle_name, 13);
- }
- // @todo Doesn't work yet. Why?
- $arguments = array(
- '%comment_node_type' => array($bundle_name),
- '%field_ui_menu' => $fields,
- );
- break;
-
- case 'node':
- $fields = array();
- foreach (field_info_instances($obj_type, $bundle_name) as $field) {
- $fields[] = $field['field_name'];
- }
- $arguments = array(
- '%node_type' => array($bundle_name),
- '%field_ui_menu' => $fields,
- );
- break;
-
- case 'taxonomy_term':
- $fields = array();
- foreach (field_info_instances($obj_type, $bundle_name) as $field) {
- $fields[] = $field['field_name'];
- }
- // Map machine_name to vid.
- $arguments = array(
- '%taxonomy_vocabulary_machine_name' => array($bundle_name),
- '%field_ui_menu' => $fields,
- );
- break;
-
- case 'user':
- $arguments = array(
- '%field_ui_menu' => array_keys(field_info_fields('user')),
- );
- break;
- }
- if (!empty($arguments)) {
- $path = $bundle_info['admin']['path'];
- $map["$path/fields/%field_ui_menu"]['parent'] = "$path/fields";
- $map["$path/fields/%field_ui_menu"]['arguments'][] = $arguments;
- }
- }
- }
- }
- return $map;
-}
-
-/**
- * Implements hook_admin_menu_map() on behalf of Taxonomy module.
- */
-function taxonomy_admin_menu_map() {
- if (!user_access('administer taxonomy')) {
- return;
- }
- $map['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name'] = array(
- 'parent' => 'admin/structure/taxonomy',
- 'hide' => 'admin/structure/taxonomy/list',
- 'arguments' => array(
- array('%taxonomy_vocabulary_machine_name' => array_keys(taxonomy_vocabulary_get_names())),
- ),
- );
- return $map;
-}
-
-/**
- * Implements hook_admin_menu_map() on behalf of Views UI module.
- */
-function views_ui_admin_menu_map() {
- if (!user_access('administer views')) {
- return;
- }
- // @todo Requires patch to views_ui.
- $map['admin/structure/views/edit/%views_ui_cache'] = array(
- 'parent' => 'admin/structure/views',
- 'hide' => 'admin/structure/views/list',
- 'arguments' => array(
- array('%views_ui_cache' => array_keys(views_get_all_views())),
- ),
- );
- return $map;
-}
-
diff --git a/admin_menu.module b/admin_menu.module
deleted file mode 100644
index 6fa85f2..0000000
--- a/admin_menu.module
+++ /dev/null
@@ -1,603 +0,0 @@
-<?php
-
-/**
- * @file
- * Render an administrative menu as a dropdown menu at the top of the window.
- */
-
-/**
- * Implements hook_help().
- */
-function admin_menu_help($path, $arg) {
- switch ($path) {
- case 'admin/config/administration/admin_menu':
- return '<p>' . t('The administration menu module provides a dropdown menu arranged for one- or two-click access to most administrative tasks and other common destinations (to users with the proper permissions). Use the settings below to customize the appearance of the menu.') . '</p>';
-
- case 'admin/help#admin_menu':
- $output = '';
- $output .= '<p>' . t('The administration menu module provides a dropdown menu arranged for one- or two-click access to most administrative tasks and other common destinations (to users with the proper permissions). Administration menu also displays the number of anonymous and authenticated users, and allows modules to add their own custom menu items. Integration with the menu varies from module to module; the contributed module <a href="@drupal">Devel</a>, for instance, makes strong use of the administration menu module to provide quick access to development tools.', array('@drupal' => 'http://drupal.org/project/devel')) . '</p>';
- $output .= '<p>' . t('The administration menu <a href="@settings">settings page</a> allows you to modify some elements of the menu\'s behavior and appearance. Since the appearance of the menu is dependent on your site theme, substantial customizations require modifications to your site\'s theme and CSS files. See the advanced module README.txt file for more information on theme and CSS customizations.', array('@settings' => url('admin/config/administration/admin_menu'))) . '</p>';
- $output .= '<p>' . t('The menu items displayed in the administration menu depend upon the actual permissions of the viewer. First, the administration menu is only displayed to users in roles with the <em>Access administration menu</em> (admin_menu module) permission. Second, a user must be a member of a role with the <em>Access administration pages</em> (system module) permission to view administrative links. And, third, only currently permitted links are displayed; for example, if a user is not a member of a role with the permissions <em>Administer permissions</em> (user module) and <em>Administer users</em> (user module), the <em>User management</em> menu item is not displayed.') . '</p>';
- return $output;
- }
-}
-
-/**
- * Implements hook_permission().
- */
-function admin_menu_permission() {
- return array(
- 'access administration menu' => array(
- 'title' => t('Access administration menu'),
- 'description' => t('Display the administration menu at the top of each page.'),
- ),
- 'flush caches' => array(
- 'title' => t('Flush caches'),
- 'description' => t('Access links to flush caches in the administration menu.'),
- ),
- 'display drupal links' => array(
- 'title' => t('Display Drupal links'),
- 'description' => t('Provide Drupal.org links in the administration menu.'),
- ),
- );
-}
-
-/**
- * Implements hook_theme().
- */
-function admin_menu_theme() {
- return array(
- 'admin_menu_links' => array(
- 'render element' => 'elements',
- ),
- 'admin_menu_icon' => array(
- 'variables' => array(),
- 'file' => 'admin_menu.inc',
- ),
- );
-}
-
-/**
- * Implements hook_menu().
- */
-function admin_menu_menu() {
- // AJAX callback.
- // @see http://drupal.org/project/js
- $items['js/admin_menu/cache'] = array(
- 'page callback' => 'admin_menu_js_cache',
- 'access arguments' => array('access administration menu'),
- 'type' => MENU_CALLBACK,
- );
- // Module settings.
- $items['admin/config/administration'] = array(
- 'title' => 'Administration',
- 'description' => 'Administration tools.',
- 'page callback' => 'system_admin_menu_block_page',
- 'access arguments' => array('access administration pages'),
- 'file' => 'system.admin.inc',
- 'file path' => drupal_get_path('module', 'system'),
- );
- $items['admin/config/administration/admin_menu'] = array(
- 'title' => 'Administration menu',
- 'description' => 'Adjust administration menu settings.',
- 'page callback' => 'drupal_get_form',
- 'page arguments' => array('admin_menu_theme_settings'),
- 'access arguments' => array('administer site configuration'),
- 'file' => 'admin_menu.inc',
- );
- // Menu link callbacks.
- $items['admin_menu/toggle-modules'] = array(
- 'page callback' => 'admin_menu_toggle_modules',
- 'access arguments' => array('administer site configuration'),
- 'type' => MENU_CALLBACK,
- 'file' => 'admin_menu.inc',
- );
- $items['admin_menu/flush-cache'] = array(
- 'page callback' => 'admin_menu_flush_cache',
- 'access arguments' => array('flush caches'),
- 'type' => MENU_CALLBACK,
- 'file' => 'admin_menu.inc',
- );
- return $items;
-}
-
-/**
- * Implements hook_menu_alter().
- */
-function admin_menu_menu_alter(&$items) {
- // Flush client-side caches whenever the menu is rebuilt.
- admin_menu_flush_caches();
-}
-
-/**
- * Implements hook_init().
- *
- * We can't move this into admin_menu_footer(), because PHP-only based themes
- * like chameleon load and output scripts and stylesheets in front of
- * theme_closure(), so we ensure Admin menu's styles and scripts are loaded on
- * all pages via hook_init().
- */
-function admin_menu_init() {
- if (!user_access('access administration menu') || admin_menu_suppress(FALSE)) {
- return;
- }
- // Performance: Skip this entirely for AJAX requests.
- if (strpos($_GET['q'], 'js/') === 0) {
- return;
- }
- global $user, $language;
-
- $path = drupal_get_path('module', 'admin_menu');
- drupal_add_css($path . '/admin_menu.css');
- if ($user->uid == 1) {
- drupal_add_css($path . '/admin_menu.uid1.css');
- }
- // Previous versions used the 'defer' attribute to increase browser rendering
- // performance. At least starting with Firefox 3.6, deferred .js files are
- // loaded, but Drupal.behaviors are not contained in the DOM when drupal.js
- // executes Drupal.attachBehaviors().
- drupal_add_js($path . '/admin_menu.js');
-
- // Destination query strings are applied via JS.
- $settings['destination'] = drupal_http_build_query(drupal_get_destination());
-
- // Hash for client-side HTTP/AJAX caching.
- $cid = 'admin_menu:' . $user->uid . ':' . $language->language;
- if (!empty($_COOKIE['has_js']) && ($hash = admin_menu_cache_get($cid))) {
- $settings['hash'] = $hash;
- // The base path to use for cache requests depends on whether clean URLs
- // are enabled, whether Drupal runs in a sub-directory, and on the language
- // system configuration. url() already provides us the proper path and also
- // invokes potentially existing custom_url_rewrite() functions, which may
- // add further required components to the URL to provide context. Due to
- // those components, and since url('') returns only base_path() when clean
- // URLs are disabled, we need to use a replacement token as path. Yuck.
- $settings['basePath'] = url('admin_menu');
- }
-
- $replacements = module_invoke_all('admin_menu_replacements');
- if (!empty($replacements)) {
- $settings['replacements'] = $replacements;
- }
-
- if ($setting = variable_get('admin_menu_margin_top', 1)) {
- $settings['margin_top'] = $setting;
- }
- if ($setting = variable_get('admin_menu_position_fixed', 0)) {
- $settings['position_fixed'] = $setting;
- }
- if ($setting = variable_get('admin_menu_tweak_tabs', 0)) {
- $settings['tweak_tabs'] = $setting;
- }
- if ($_GET['q'] == 'admin/modules' || strpos($_GET['q'], 'admin/modules/list') === 0) {
- $settings['tweak_modules'] = variable_get('admin_menu_tweak_modules', 0);
- }
- if ($_GET['q'] == 'admin/people/permissions' || $_GET['q'] == 'admin/people/permissions/list') {
- $settings['tweak_permissions'] = variable_get('admin_menu_tweak_permissions', 0);
- }
-
- drupal_add_js(array('admin_menu' => $settings), 'setting');
-}
-
-/**
- * Suppress display of administration menu.
- *
- * This function should be called from within another module's page callback
- * (preferably using module_invoke()) when the menu should not be displayed.
- * This is useful for modules that implement popup pages or other special
- * pages where the menu would be distracting or break the layout.
- *
- * @param $set
- * Defaults to TRUE. If called before hook_footer(), the menu will not be
- * displayed. If FALSE is passed, the suppression state is returned.
- */
-function admin_menu_suppress($set = TRUE) {
- static $suppress = FALSE;
- // drupal_add_js() must only be invoked once.
- if (!empty($set) && $suppress === FALSE) {
- $suppress = TRUE;
- drupal_add_js(array('admin_menu' => array('suppress' => 1)), 'setting');
- }
- return $suppress;
-}
-
-/**
- * Implements hook_page_alter().
- */
-function admin_menu_page_alter(&$page) {
- $page['page_bottom']['admin_menu'] = array(
- '#markup' => admin_menu_output(),
- );
-}
-
-/**
- * Implements hook_js().
- */
-function admin_menu_js() {
- return array(
- 'cache' => array(
- 'callback' => 'admin_menu_js_cache',
- 'includes' => array('common', 'theme', 'unicode'),
- 'dependencies' => array('devel', 'filter', 'user'),
- ),
- );
-}
-
-/**
- * Retrieve a client-side cache hash from cache.
- *
- * The hash cache is consulted more than once per request; we therefore cache
- * the results statically to avoid multiple database requests.
- *
- * This should only be used for client-side cache hashes. Use cache_menu for
- * administration menu content.
- *
- * @param $cid
- * The cache ID of the data to retrieve.
- */
-function admin_menu_cache_get($cid) {
- static $cache = array();
-
- if (!variable_get('admin_menu_cache_client', TRUE)) {
- return FALSE;
- }
- if (!array_key_exists($cid, $cache)) {
- $cache[$cid] = cache_get($cid, 'cache_admin_menu');
- if ($cache[$cid] && isset($cache[$cid]->data)) {
- $cache[$cid] = $cache[$cid]->data;
- }
- }
-
- return $cache[$cid];
-}
-
-/**
- * Store a client-side cache hash in persistent cache.
- *
- * This should only be used for client-side cache hashes. Use cache_menu for
- * administration menu content.
- *
- * @param $cid
- * The cache ID of the data to retrieve.
- */
-function admin_menu_cache_set($cid, $data) {
- if (variable_get('admin_menu_cache_client', TRUE)) {
- cache_set($cid, $data, 'cache_admin_menu');
- }
-}
-
-/**
- * Menu callback; Output administration menu for HTTP caching via AJAX request.
- */
-function admin_menu_js_cache($hash = NULL) {
- // Get the rendered menu.
- $content = admin_menu_output();
-
- // @todo According to http://www.mnot.net/blog/2006/05/11/browser_caching,
- // IE will only cache the content when it is compressed.
- // Determine if the client accepts gzipped data.
- if (isset($_SERVER['HTTP_ACCEPT_ENCODING'])) {
- if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'x-gzip') !== FALSE) {
- $encoding = 'x-gzip';
- }
- elseif (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE) {
- $encoding = 'gzip';
- }
- // Perform gzip compression when:
- // 1) the user agent supports gzip compression.
- // 2) Drupal page compression is enabled. Sites may wish to perform the
- // compression at the web server level (e.g. using mod_deflate).
- // 3) PHP's zlib extension is loaded, but zlib compression is disabled.
- if (isset($encoding) && variable_get('page_compression', TRUE) && extension_loaded('zlib') && zlib_get_coding_type() === FALSE) {
- // Use Vary header to tell caches to keep separate versions of the menu
- // based on user agent capabilities.
- header('Vary: Accept-Encoding');
- // Since we manually perform compression, we are also responsible to
- // send a proper encoding header.
- header('Content-Encoding: ' . $encoding);
- $content = gzencode($content, 9, FORCE_GZIP);
- }
- }
-
- $expires = REQUEST_TIME + (3600 * 24 * 365);
- header('Expires: ' . gmdate(DATE_RFC1123, $expires));
- header('Last-Modified: ' . gmdate(DATE_RFC1123, REQUEST_TIME));
- header('Cache-Control: max-age=' . $expires);
- header('Content-Length: ' . strlen($content));
-
- // Suppress Devel module.
- $GLOBALS['devel_shutdown'] = FALSE;
- echo $content;
- exit;
-}
-
-/**
- * Implements hook_admin_menu_replacements().
- */
-function admin_menu_admin_menu_replacements() {
- $items = array();
- if ($user_count = admin_menu_get_user_count()) {
- $items['.admin-menu-users a'] = $user_count;
- }
- return $items;
-}
-
-/**
- * Return count of online anonymous/authenticated users.
- *
- * @see user_block(), user.module
- */
-function admin_menu_get_user_count() {
- $interval = REQUEST_TIME - variable_get('user_block_seconds_online', 900);
- $count_anon = admin_menu_session_count($interval, TRUE);
- $count_auth = admin_menu_session_count($interval, FALSE);
-
- return t('@count-anon / @count-auth', array('@count-anon' => $count_anon, '@count-auth' => $count_auth));
-}
-
-/**
- * Counts how many users are active on the site.
- *
- * Counts how many users have sessions which have been active since the
- * specified time. Can count either anonymous sessions or authenticated
- * sessions.
- *
- * @param $timestamp
- * A Unix timestamp. Users who have been active since this time will be
- * counted. The default is 0, which counts all existing sessions.
- * @param $anonymous
- * TRUE counts only anonymous users. FALSE counts only authenticated users.
- *
- * @return
- * The number of users with sessions.
- *
- * @todo There are mostly no anonymous sessions anymore. Split this into a
- * separate module providing proper user statistics.
- */
-function admin_menu_session_count($timestamp = 0, $anonymous = TRUE) {
- $query = db_select('sessions');
- $query->addExpression('COUNT(sid)', 'count');
- $query->condition('timestamp', $timestamp, '>=');
- $query->condition('uid', 0, $anonymous ? '=' : '>');
- return $query->execute()->fetchField();
-}
-
-/**
- * Build the administration menu output.
- */
-function admin_menu_output() {
- if (!user_access('access administration menu') || admin_menu_suppress(FALSE)) {
- return;
- }
- global $user, $language;
-
- $cache_server_enabled = variable_get('admin_menu_cache_server', TRUE);
- $cid = 'admin_menu:' . $user->uid . ':' . $language->language;
-
- // Do nothing at all here if the client supports client-side caching, the user
- // has a hash, and is NOT requesting the cache update path. Consult the hash
- // cache last, since it requires a DB request.
- // @todo Implement a sanity-check to prevent permanent double requests; i.e.
- // what if the client-side cache fails for any reason and performs a second
- // request on every page?
- if (!empty($_COOKIE['has_js']) && strpos($_GET['q'], 'js/admin_menu/cache') !== 0) {
- if (admin_menu_cache_get($cid)) {
- return;
- }
- }
-
- // Try to load and output administration menu from server-side cache.
- if ($cache_server_enabled) {
- $cache = cache_get($cid, 'cache_menu');
- if ($cache && isset($cache->data)) {
- $content = $cache->data;
- }
- }
-
- // Rebuild the output.
- if (!isset($content)) {
- // Add site name as CSS class for development/staging theming purposes. We
- // leverage the cookie domain instead of HTTP_HOST to account for many (but
- // not all) multi-domain setups (e.g. language-based sub-domains).
- $class_site = 'admin-menu-site' . drupal_strtolower(preg_replace('/[^a-zA-Z0-9-]/', '-', $GLOBALS['cookie_domain']));
- // @todo Always output container to harden JS-less support.
- $content['#prefix'] = '<div id="admin-menu" class="' . $class_site . '"><div id="admin-menu-wrapper"><ul>';
- $content['#suffix'] = '</ul></div></div>';
-
- // Load menu builder functions.
- module_load_include('inc', 'admin_menu');
-
- // Add administration menu.
- $content['menu'] = admin_menu_links_menu(admin_menu_tree('management'));
- $content['menu']['#theme'] = 'admin_menu_links';
- // Ensure the menu tree is rendered between the icon and user links.
- $content['menu']['#weight'] = 0;
- // Do not sort the menu tree, since it is sorted already.
- $content['menu']['#sorted'] = TRUE;
-
- // Add menu additions.
- $content['icon'] = admin_menu_links_icon();
- $content['user'] = admin_menu_links_user();
-
- // Allow modules to alter the output.
- drupal_alter('admin_menu_output', $content);
- $content = drupal_render($content);
-
- // Cache the menu for this user.
- if ($cache_server_enabled) {
- cache_set($cid, $content, 'cache_menu');
- }
- }
-
- // Store the new hash for this user.
- if (!empty($_COOKIE['has_js'])) {
- admin_menu_cache_set($cid, md5($content));
- }
-
- return $content;
-}
-
-/**
- * Render a themed list of links.
- *
- * @param $variables
- * - elements: A renderable array of links using the following keys:
- * - #attributes: Optional array of attributes for the list item, processed
- * via drupal_attributes().
- * - #title: Title of the link, passed to l().
- * - #href: Optional path of the link, passed to l(). When omitted, the
- * element's '#title' is rendered without link.
- * - #description: Optional alternative text for the link, passed to l().
- * - #options: Optional alternative text for the link, passed to l().
- * The array key of each child element itself is passed as path for l().
- * - depth: Current recursion level; internal use only.
- */
-function theme_admin_menu_links($variables) {
- $destination = &drupal_static('admin_menu_destination');
- $elements = $variables['elements'];
- $depth = (isset($variables['depth']) ? $variables['depth'] : 0);
-
- if (!isset($destination)) {
- $destination = drupal_get_destination();
- $destination = $destination['destination'];
- }
-
- $output = '';
- $depth_child = $depth + 1;
- foreach (element_children($elements, TRUE) as $path) {
- // Early-return nothing if user does not have access.
- if (isset($elements[$path]['#access']) && !$elements[$path]['#access']) {
- continue;
- }
- $elements[$path] += array(
- '#attributes' => array(),
- '#options' => array(),
- );
- // Render children to determine whether this link is expandable.
- if (isset($elements[$path]['#type']) || isset($elements[$path]['#theme'])) {
- $elements[$path]['#admin_menu_depth'] = $depth_child;
- $elements[$path]['#children'] = drupal_render($elements[$path]);
- }
- else {
- // Inherit #sorted flag from parent item.
- if (isset($elements['#sorted'])) {
- $elements[$path]['#sorted'] = TRUE;
- }
- $elements[$path]['#children'] = theme('admin_menu_links', array('elements' => $elements[$path], 'depth' => $depth_child));
- if (!empty($elements[$path]['#children'])) {
- $elements[$path]['#attributes']['class'][] = 'expandable';
- }
- if (isset($elements[$path]['#attributes']['class'])) {
- $elements[$path]['#attributes']['class'] = $elements[$path]['#attributes']['class'];
- }
- }
-
- $link = '';
- if (isset($elements[$path]['#href'])) {
- // Strip destination query string from href attribute and apply a CSS class
- // for our JavaScript behavior instead.
- if (isset($elements[$path]['#options']['query']['destination']) && $elements[$path]['#options']['query']['destination'] == $destination) {
- unset($elements[$path]['#options']['query']['destination']);
- $elements[$path]['#options']['attributes']['class'][] = 'admin-menu-destination';
- }
-
- $link .= l($elements[$path]['#title'], $elements[$path]['#href'], $elements[$path]['#options']);
- }
- elseif (isset($elements[$path]['#title'])) {
- if (!empty($elements[$path]['#options']['html'])) {
- $title = $elements[$path]['#title'];
- }
- else {
- $title = check_plain($elements[$path]['#title']);
- }
- if (!empty($elements[$path]['#options']['attributes'])) {
- $link .= '<span' . drupal_attributes($elements[$path]['#options']['attributes']) . '>' . $title . '</span>';
- }
- else {
- $link .= $title;
- }
- }
-
- $output .= '<li' . drupal_attributes($elements[$path]['#attributes']) . '>';
- $output .= $link . $elements[$path]['#children'];
- $output .= '</li>';
- }
- // @todo #attributes probably required for UL, but already used for LI.
- // @todo Use $element['#children'] here instead.
- if ($output && $depth > 0) {
- $output = "\n<ul>" . $output . '</ul>';
- }
- return $output;
-}
-
-/**
- * Implements hook_translated_menu_link_alter().
- *
- * Here is where we make changes to links that need dynamic information such
- * as the current page path or the number of users.
- */
-function admin_menu_translated_menu_link_alter(&$item, $map) {
- global $user, $base_url;
- static $access_all;
-
- if ($item['menu_name'] != 'admin_menu') {
- return;
- }
-
- // Check whether additional development output is enabled.
- if (!isset($access_all)) {
- $access_all = variable_get('admin_menu_show_all', 0) && module_exists('devel');
- }
- // Prepare links that would not be displayed normally.
- if ($access_all && !$item['access']) {
- $item['access'] = TRUE;
- // Prepare for http://drupal.org/node/266596
- if (!isset($item['localized_options'])) {
- _menu_item_localize($item, $map, TRUE);
- }
- }
-
- // Don't waste cycles altering items that are not visible
- if (!$item['access']) {
- return;
- }
-
- // Add developer information to all links, if enabled.
- if ($extra = variable_get('admin_menu_display', 0)) {
- $item['title'] .= ' ' . $extra[0] . ': ' . $item[$extra];
- }
-}
-
-/**
- * Implements hook_flush_caches().
- *
- * Flush client-side caches.
- */
-function admin_menu_flush_caches() {
- // Flush cached output of admin_menu.
- cache_clear_all('admin_menu:', 'cache_menu', TRUE);
- // Flush client-side cache hashes.
- // db_table_exists() required for SimpleTest.
- if (db_table_exists('cache_admin_menu')) {
- cache_clear_all('*', 'cache_admin_menu', TRUE);
- }
-}
-
-/**
- * Implements hook_form_FORM_ID_alter().
- *
- * Form submit handler to flush client-side cache hashes when clean URLs are toggled.
- */
-function admin_menu_form_system_clean_url_settings_alter(&$form, $form_state) {
- $form['#submit'][] = 'admin_menu_flush_caches';
-}
-
-/**
- * Implements hook_form_FORM_ID_alter().
- *
- * Extends Devel module with Administration menu developer settings.
- */
-function admin_menu_form_devel_admin_settings_alter(&$form, &$form_state) {
- module_load_include('inc', 'admin_menu');
- _admin_menu_form_devel_admin_settings_alter($form, $form_state);
-}
diff --git a/admin_menu.uid1.css b/admin_menu.uid1.css
deleted file mode 100644
index e375cfe..0000000
--- a/admin_menu.uid1.css
+++ /dev/null
@@ -1,9 +0,0 @@
-
-/**
- * @file
- * Administration menu color override for uid1.
- */
-
-#admin-menu li.admin-menu-account > a {
- background: #911 url(images/bkg-red.png) bottom left repeat-x;
-}
diff --git a/admin_menu_toolbar/admin_menu_toolbar.css b/admin_menu_toolbar/admin_menu_toolbar.css
deleted file mode 100644
index 85c7d8e..0000000
--- a/admin_menu_toolbar/admin_menu_toolbar.css
+++ /dev/null
@@ -1,155 +0,0 @@
-
-/**
- * @file
- * Toolbar style for Administration menu.
- *
- * Important: We cannot re-use toolbar.png from Toolbar module, since we cannot
- * reliably determine the path to it.
- *
- * @todo Separate shortcut functionality into own module/widget.
- */
-
-/* Adjust margin/height */
-html body.admin-menu {
- margin-top: 29px !important;
-}
-body div#toolbar {
- top: 30px;
-}
-
-/**
- * Base styles.
- *
- * We use a keyword for the toolbar font size to make it display consistently
- * across different themes, while still allowing browsers to resize the text.
- */
-#admin-menu {
- font: normal small "Lucida Grande", Verdana, sans-serif;
- position: fixed;
- margin: 0 -20px;
- padding: 0 20px;
- -moz-box-shadow: 0 3px 20px #000;
- -webkit-box-shadow: 0 3px 20px #000;
- box-shadow: 0 3px 20px #000;
- filter: progid:DXImageTransform.Microsoft.Shadow(color=#000000, direction='180', strength='10');
- -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(color=#000000, direction='180', strength='10')";
- right: 0;
- width: auto;
-}
-#admin-menu-wrapper {
- font-size: .846em;
- padding: 5px 10px 0;
-}
-
-#admin-menu ul a {
- color: #fafafa;
-}
-
-/* Remove border from all lists and actions */
-#admin-menu li.admin-menu-action a {
- border-left: 0;
-}
-#admin-menu li.admin-menu-icon > a {
- padding: 2px 10px 3px;
-}
-
-/**
- * Administration menu.
- */
-#admin-menu li.admin-menu-icon > a span {
- vertical-align: text-bottom;
- width: 11px;
- height: 14px;
- display: block;
- background: url(toolbar.png) no-repeat 0 -45px;
- text-indent: -9999px;
-}
-#admin-menu > div > ul > li > a {
- border-right: 0;
- margin-bottom: 4px;
- padding: 2px 10px 3px;
-}
-#admin-menu ul li.admin-menu-toolbar-category > a,
-#admin-menu ul li.admin-menu-action > a {
- border-radius: 10px;
- -moz-border-radius: 10px;
- -webkit-border-radius: 10px;
-}
-#admin-menu ul li.admin-menu-toolbar-category > a.active-trail {
- text-shadow: #333 0 1px 0;
- background: url(toolbar.png) 0 0 repeat-x;
-}
-#admin-menu ul li.admin-menu-toolbar-category > a:hover {
- background-color: #444;
-}
-#admin-menu ul li.admin-menu-tab a {
- border-right: 0;
-}
-#admin-menu li li.expandable ul {
- margin: -22px 0 0 160px;
-}
-
-/**
- * Shortcuts toggle.
- */
-#admin-menu li.admin-menu-shortcuts {
- float: right;
-}
-#admin-menu li.admin-menu-shortcuts span.toggle {
- cursor: pointer;
- background: url(toolbar.png) 0 -20px no-repeat;
- display: block;
- margin: 0 0 0 1.3em;
- text-indent: -9999px;
- overflow: hidden;
- width: 25px;
- height: 25px;
-}
-#admin-menu li.admin-menu-shortcuts span.toggle:focus,
-#admin-menu li.admin-menu-shortcuts span.toggle:hover {
- background-position: -50px -20px;
-}
-#admin-menu li.admin-menu-shortcuts-active span.toggle {
- background-position: -25px -20px;
-}
-#admin-menu li.admin-menu-shortcuts-active span.toggle:focus,
-#admin-menu li.admin-menu-shortcuts-active span.toggle:hover {
- background-position: -75px -20px;
-}
-
-/**
- * Shortcuts widget.
- */
-#admin-menu li.admin-menu-shortcuts-active ul {
- display: block !important;
- left: 20px !important;
- right: 20px;
- width: auto;
-}
-#admin-menu li.admin-menu-shortcuts ul {
- background-color: #666;
- left: 20px !important;
- padding: 5px 10px;
- right: 20px;
- width: auto;
-}
-#admin-menu li.admin-menu-shortcuts ul li {
- background: transparent none;
- opacity: 1;
- width: auto;
-}
-#admin-menu li.admin-menu-shortcuts ul li a {
- border-radius: 5px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- border-top: 0;
- padding: 5px 10px 5px 5px;
- margin-right: 5px;
-}
-#admin-menu li.admin-menu-shortcuts ul li a:hover {
- background: #555;
-}
-#admin-menu li.admin-menu-shortcuts ul li a.active:hover,
-#admin-menu li.admin-menu-shortcuts ul li a.active {
- background: url(toolbar.png) 0 -20px repeat-x;
-}
diff --git a/admin_menu_toolbar/admin_menu_toolbar.info b/admin_menu_toolbar/admin_menu_toolbar.info
deleted file mode 100644
index afa3bf3..0000000
--- a/admin_menu_toolbar/admin_menu_toolbar.info
+++ /dev/null
@@ -1,5 +0,0 @@
-name = Administration menu Toolbar style
-description = A better Toolbar.
-package = Administration
-core = 8.x
-dependencies[] = admin_menu
diff --git a/admin_menu_toolbar/admin_menu_toolbar.install b/admin_menu_toolbar/admin_menu_toolbar.install
deleted file mode 100644
index bf067d7..0000000
--- a/admin_menu_toolbar/admin_menu_toolbar.install
+++ /dev/null
@@ -1,37 +0,0 @@
-<?php
-
-/**
- * @file
- * Installation functionality for Administration menu toolbar module.
- */
-
-/**
- * Implements hook_install().
- */
-function admin_menu_toolbar_install() {
- // Required to load JS/CSS in hook_init() after admin_menu.
- db_update('system')
- ->fields(array('weight' => 101))
- ->condition('type', 'module')
- ->condition('name', 'admin_menu_toolbar')
- ->execute();
-}
-
-/**
- * Set module weight to a value higher than admin_menu.
- *
- * At this point, admin_menu should have a weight of 100. To account for
- * customized weights, we increase the weight relatively.
- *
- * @see admin_menu_toolbar_install()
- */
-function admin_menu_toolbar_update_6300() {
- $weight = db_query("SELECT weight FROM {system} WHERE type = 'module' AND name = 'admin_menu'")->fetchField();
- $weight++;
- db_update('system')
- ->fields(array('weight' => $weight))
- ->condition('type', 'module')
- ->condition('name', 'admin_menu_toolbar')
- ->execute();
-}
-
diff --git a/admin_menu_toolbar/admin_menu_toolbar.js b/admin_menu_toolbar/admin_menu_toolbar.js
deleted file mode 100644
index 28f8448..0000000
--- a/admin_menu_toolbar/admin_menu_toolbar.js
+++ /dev/null
@@ -1,26 +0,0 @@
-(function($) {
-
-Drupal.admin = Drupal.admin || {};
-Drupal.admin.behaviors = Drupal.admin.behaviors || {};
-
-/**
- * @ingroup admin_behaviors
- * @{
- */
-
-/**
- * Apply active trail highlighting based on current path.
- *
- * @todo Not limited to toolbar; move into core?
- */
-Drupal.admin.behaviors.toolbarActiveTrail = function (context, settings, $adminMenu) {
- if (settings.admin_menu.toolbar && settings.admin_menu.toolbar.activeTrail) {
- $adminMenu.find('> div > ul > li > a[href="' + settings.admin_menu.toolbar.activeTrail + '"]').addClass('active-trail');
- }
-};
-
-/**
- * @} End of "defgroup admin_behaviors".
- */
-
-})(jQuery);
diff --git a/admin_menu_toolbar/admin_menu_toolbar.module b/admin_menu_toolbar/admin_menu_toolbar.module
deleted file mode 100644
index 577bc8c..0000000
--- a/admin_menu_toolbar/admin_menu_toolbar.module
+++ /dev/null
@@ -1,84 +0,0 @@
-<?php
-
-/**
- * @file
- * Renders Administration menu like Toolbar (core) module.
- *
- * @todo Separate shortcut functionality into own module/widget.
- */
-
-/**
- * Implementation of hook_init().
- *
- * @todo Add another admin_menu hook to avoid cluttering hook_init().
- */
-function admin_menu_toolbar_init() {
- if (!user_access('access administration menu') || admin_menu_suppress(FALSE)) {
- return;
- }
- // Performance: Skip this entirely for AJAX requests.
- if (strpos($_GET['q'], 'js/') === 0) {
- return;
- }
- $path = drupal_get_path('module', 'admin_menu_toolbar');
- drupal_add_css($path . '/admin_menu_toolbar.css', array('preprocess' => FALSE));
- // Performance: Defer execution.
- drupal_add_js($path . '/admin_menu_toolbar.js', array('defer' => TRUE));
-
- $settings = array();
- // Add current path to support menu item highlighting.
- // @todo Compile real active trail here?
- $args = explode('/', $_GET['q']);
- if ($args[0] == 'admin' && !empty($args[1])) {
- $settings['activeTrail'] = url($args[0] . '/' . $args[1]);
- }
- elseif (drupal_is_front_page()) {
- $settings['activeTrail'] = url('<front>');
- }
- drupal_add_js(array('admin_menu' => array('toolbar' => $settings)), 'setting');
-}
-
-/**
- * Implementation of hook_admin_menu_output_alter().
- */
-function admin_menu_toolbar_admin_menu_output_alter(&$content) {
- // Add a class to top-level items for styling.
- foreach (element_children($content['menu']) as $link) {
- $content['menu'][$link]['#attributes']['class'][] = 'admin-menu-toolbar-category';
- }
-
- // Alter icon.
- unset($content['icon']['icon']['#theme']);
- $content['icon']['icon']['#title'] = '<span>' . t('Home') . '</span>';
- $content['icon']['icon']['#attributes']['class'][] = 'admin-menu-toolbar-category';
-
- // Alter user account link.
- $content['user']['account']['#title'] = t('Hello <strong>@username</strong>', array('@username' => $content['user']['account']['#title']));
- $content['user']['account']['#options']['html'] = TRUE;
-
- // Add shortcuts menu.
- $content['shortcuts'] = array(
- '#theme' => 'admin_menu_links',
- '#weight' => -200,
- );
- $content['shortcuts']['shortcuts'] = array(
- '#title' => t('Show shortcuts'),
- // @todo How do we want to trigger/store state?
- '#attributes' => array('class' => array('admin-menu-shortcuts')),
- //'#attributes' => array('class' => array('admin-menu-shortcuts', 'admin-menu-shortcuts-active')),
- '#options' => array(
- 'attributes' => array('class' => 'toggle'),
- ),
- );
- // @todo *Move* this from $content['menu'] instead.
- $content['shortcuts']['shortcuts']['node-add'] = array(
- '#title' => t('Add content'),
- '#href' => 'node/add',
- );
- $content['shortcuts']['shortcuts']['admin-content-node'] = array(
- '#title' => t('Find content'),
- '#href' => 'admin/content/node',
- '#access' => user_access('administer nodes'),
- );
-}
-
diff --git a/admin_menu_toolbar/toolbar.png b/admin_menu_toolbar/toolbar.png
deleted file mode 100644
index f2c7f35..0000000
--- a/admin_menu_toolbar/toolbar.png
+++ /dev/null
Binary files differ
diff --git a/admin_views/admin_views.css b/admin_views/admin_views.css
deleted file mode 100644
index 8a94f64..0000000
--- a/admin_views/admin_views.css
+++ /dev/null
@@ -1,20 +0,0 @@
-
-.admin-views-view .views-exposed-form .form-text {
- width: 10em;
-}
-
-.admin-views-view .views-exposed-form .description {
- display: none;
-}
-
-.admin-views-view .views-exposed-form .views-submit-button,
-.admin-views-view .views-exposed-form .views-reset-button {
- padding-right: 0;
-}
-
-.admin-views-view .form-item-operation {
- float: left;
- margin-top: 0;
- margin-bottom: 0;
- margin-right: 1em;
-}
diff --git a/admin_views/admin_views.info b/admin_views/admin_views.info
deleted file mode 100644
index c7a0e22..0000000
--- a/admin_views/admin_views.info
+++ /dev/null
@@ -1,7 +0,0 @@
-name = Administration views
-description = Replaces all system object management pages in Drupal core with real views.
-package = Administration
-core = 8.x
-dependencies[] = views
-dependencies[] = views_bulk_operations
-files[] = plugins/views_plugin_display_system.inc
diff --git a/admin_views/admin_views.install b/admin_views/admin_views.install
deleted file mode 100644
index 3fdbc25..0000000
--- a/admin_views/admin_views.install
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-/**
- * @file
- * Administration views installation functions.
- */
-
-/**
- * Implementation of hook_install().
- */
-function admin_views_install() {
- // We need to run after Views module's hook_menu_alter() to fix the router
- // item properties of overridden pages.
- db_query("UPDATE {system} SET weight = 12 WHERE name = 'admin_views'");
-}
-
diff --git a/admin_views/admin_views.module b/admin_views/admin_views.module
deleted file mode 100644
index afa1d96..0000000
--- a/admin_views/admin_views.module
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-/**
- * @file
- * Replaces all system object management pages in Drupal core with real views.
- */
-
-/**
- * Implements hook_views_api().
- */
-function admin_views_views_api() {
- return array(
- 'api' => 2,
- );
-}
-
diff --git a/admin_views/admin_views.views.inc b/admin_views/admin_views.views.inc
deleted file mode 100644
index 7ae3793..0000000
--- a/admin_views/admin_views.views.inc
+++ /dev/null
@@ -1,34 +0,0 @@
-<?php
-
-/**
- * @file
- * Views plugin handlers.
- */
-
-/**
- * Implements hook_views_plugins().
- */
-function admin_views_views_plugins() {
- $path = drupal_get_path('module', 'admin_views');
-
- $plugins = array(
- 'module' => 'views', // This just tells our themes are elsewhere.
- 'display' => array(
- 'system' => array(
- 'title' => t('System'),
- 'help' => t('Display the view as replacement for an existing menu path.'),
- 'path' => "$path/plugins",
- 'handler' => 'views_plugin_display_system',
- 'theme' => 'views_view',
- 'uses hook menu' => TRUE,
- 'use ajax' => TRUE,
- 'use pager' => TRUE,
- 'accept attachments' => TRUE,
- 'admin' => t('System'),
- ),
- ),
- );
-
- return $plugins;
-}
-
diff --git a/admin_views/admin_views.views_default.inc b/admin_views/admin_views.views_default.inc
deleted file mode 100644
index 5240d63..0000000
--- a/admin_views/admin_views.views_default.inc
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/**
- * @file
- * Default views.
- */
-
-/**
- * Implements hook_views_default_views().
- */
-function admin_views_views_default_views() {
- static $views;
-
- if (isset($views)) {
- return $views;
- }
-
- $files = file_scan_directory(drupal_get_path('module', 'admin_views') . '/views_default', '/\.inc$/');
- foreach ($files as $filepath => $file) {
- include $filepath;
- if (isset($view)) {
- $views[$view->name] = $view;
- }
- }
- return $views;
-}
-
diff --git a/admin_views/plugins/views_plugin_display_system.inc b/admin_views/plugins/views_plugin_display_system.inc
deleted file mode 100644
index 61fcd76..0000000
--- a/admin_views/plugins/views_plugin_display_system.inc
+++ /dev/null
@@ -1,230 +0,0 @@
-<?php
-
-/**
- * @file
- * System display plugin.
- */
-
-/**
- * Plugin to handle replacement of existing system paths.
- *
- * @ingroup views_display_plugins
- */
-class views_plugin_display_system extends views_plugin_display {
- /**
- * The system display requires a path.
- */
- function has_path() {
- return TRUE;
- }
-
- // @todo Needed?
- function uses_breadcrumb() {
- return TRUE;
- }
-
- function option_definition() {
- $options = parent::option_definition();
-
- $options['path'] = array(
- 'default' => '',
- );
-
- return $options;
- }
-
- /**
- * Add this display's path information to Drupal's menu system.
- */
- function execute_hook_menu($callbacks) {
- $items = array();
-
- // Replace % with the link to our standard views argument loader
- // views_arg_load().
- $bits = explode('/', $this->get_option('path'));
- $page_arguments = array($this->view->name, $this->display->id);
- $this->view->init_handlers();
- $view_arguments = $this->view->argument;
-
- // Replace % with %views_arg for menu autoloading and add to the
- // page arguments so the argument actually comes through.
- foreach ($bits as $pos => $bit) {
- if ($bit == '%') {
- $argument = array_shift($view_arguments);
- if (!empty($argument->options['specify_validation']) && $argument->options['validate']['type'] != 'none') {
- $bits[$pos] = '%views_arg';
- }
- $page_arguments[] = $pos;
- }
- }
-
- $path = implode('/', $bits);
- if (!$path) {
- return $items;
- }
-
- $access_plugin = $this->get_plugin('access');
- if (!isset($access_plugin)) {
- $access_plugin = views_get_plugin('access', 'none');
- }
-
- // Get access callback might return an array of the callback + the dynamic arguments.
- $access_plugin_callback = $access_plugin->get_access_callback();
-
- if (is_array($access_plugin_callback)) {
- $access_arguments = array();
-
- // Find the plugin arguments.
- $access_plugin_method = array_shift($access_plugin_callback);
- $access_plugin_arguments = array_shift($access_plugin_callback);
- if (!is_array($access_plugin_arguments)) {
- $access_plugin_arguments = array();
- }
-
- $access_arguments[0] = array($access_plugin_method, &$access_plugin_arguments);
-
- // Move the plugin arguments to the access arguments array.
- $i = 1;
- foreach ($access_plugin_arguments as $key => $value) {
- if (is_int($value)) {
- $access_arguments[$i] = $value;
- $access_plugin_arguments[$key] = $i;
- $i++;
- }
- }
- }
- else {
- $access_arguments = array($access_plugin_callback);
- }
-
- $items[$path] = array(
- // default views page entry
- 'page callback' => 'views_page',
- 'page arguments' => $page_arguments,
- // Default access check (per display)
- 'access callback' => 'views_access',
- 'access arguments' => $access_arguments,
- // Identify URL embedded arguments and correlate them to a handler
- 'load arguments' => array($this->view->name, $this->display->id, '%index'),
- );
-
- // Grep all callbacks for router items below the target path.
- $children = preg_grep('@^' . preg_quote($path, '@') . '/@', array_keys($callbacks));
- foreach ($children as $child_path) {
- // Only inherit properties from parent, if the child is not a default
- // local task.
- if (!isset($callbacks[$child_path]['type']) || $callbacks[$child_path]['type'] != MENU_DEFAULT_LOCAL_TASK) {
- // Add child to our stack of items to replace.
- $items[$child_path] = $callbacks[$child_path];
- // Ensure that the parent path really exists and inherit its
- // properties to the child (not replacing existing properties).
- if (isset($callbacks[$path])) {
- $items[$child_path] += $callbacks[$path];
- }
- }
- }
-
- // If the path really exists, copy over its remaining properties.
- if (isset($callbacks[$path])) {
- $items[$path] += $callbacks[$path];
- }
-
- return $items;
- }
-
- /**
- * Build and render the page view.
- *
- * Since we replace an existing page, we need to invoke views_set_page_view().
- * Also set the page title, because original page callbacks might do this.
- */
- function execute() {
- views_set_page_view($this->view);
-
- // Prior to this being called, the $view should already be set to this
- // display, and arguments should be set on the view.
- $this->view->build();
- if (!empty($this->view->build_info['fail'])) {
- return drupal_not_found();
- }
- // @todo Needed?
- $this->view->get_breadcrumb(TRUE);
-
- drupal_set_title(filter_xss_admin($this->view->get_title()), PASS_THROUGH);
-
- // @todo This is super-likely the totally wrong place to add our CSS; better
- // suggestions and patches welcome.
- drupal_add_css(drupal_get_path('module', 'admin_views') . '/admin_views.css');
-
- return $this->view->render();
- }
-
- /**
- * Provide the summary for page options in the views UI.
- *
- * This output is returned as an array.
- */
- function options_summary(&$categories, &$options) {
- parent::options_summary($categories, $options);
-
- $categories['system'] = array(
- 'title' => t('System path settings'),
- );
-
- $path = strip_tags('/' . $this->get_option('path'));
- if (empty($path)) {
- $path = t('None');
- }
-
- $options['path'] = array(
- 'category' => 'system',
- 'title' => t('Path'),
- 'value' => views_ui_truncate($path, 24),
- );
- }
-
- /**
- * Provide the default form for setting options.
- */
- function options_form(&$form, &$form_state) {
- parent::options_form($form, $form_state);
-
- switch ($form_state['section']) {
- case 'path':
- $form['#title'] .= t('An existing menu path this view replaces');
- $form['path'] = array(
- '#type' => 'textfield',
- '#description' => t('This view replaces this path on your site. You may use "%" for dynamic arguments. For example: "node/%/feed".'),
- '#default_value' => $this->get_option('path'),
- '#field_prefix' => '<span dir="ltr">' . url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q='),
- '#field_suffix' => '</span>&lrm;',
- '#attributes' => array('dir'=>'ltr'),
- );
- break;
- }
- }
-
- function options_validate(&$form, &$form_state) {
- parent::options_validate($form, $form_state);
-
- switch ($form_state['section']) {
- case 'path':
- if (strpos($form_state['values']['path'], '%') === 0) {
- form_error($form['path'], t('"%" may not be used for the first segment of a path.'));
- }
- // Automatically remove '/' from path.
- $form_state['values']['path'] = trim($form_state['values']['path'], '/');
- break;
- }
- }
-
- function options_submit(&$form, &$form_state) {
- parent::options_submit($form, $form_state);
-
- switch ($form_state['section']) {
- case 'path':
- $this->set_option('path', $form_state['values']['path']);
- break;
- }
- }
-}
diff --git a/admin_views/views_default/admin_content_comment.inc b/admin_views/views_default/admin_content_comment.inc
deleted file mode 100644
index ab419b0..0000000
--- a/admin_views/views_default/admin_content_comment.inc
+++ /dev/null
@@ -1,243 +0,0 @@
-<?php
-
-$view = new view;
-$view->name = 'admin_content_comment';
-$view->description = 'List and edit site comments and the comment moderation queue.';
-$view->tag = 'admin';
-$view->base_table = 'comment';
-$view->human_name = '';
-$view->core = 0;
-$view->api_version = '3.0-alpha1';
-$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
-
-/* Display: Defaults */
-$handler = $view->new_display('default', 'Defaults', 'default');
-$handler->display->display_options['title'] = 'Comments';
-$handler->display->display_options['css_class'] = 'admin-views-view';
-$handler->display->display_options['use_ajax'] = TRUE;
-$handler->display->display_options['access']['type'] = 'perm';
-$handler->display->display_options['access']['perm'] = 'administer comments';
-$handler->display->display_options['cache']['type'] = 'none';
-$handler->display->display_options['query']['type'] = 'views_query';
-$handler->display->display_options['exposed_form']['type'] = 'basic';
-$handler->display->display_options['pager']['type'] = 'full';
-$handler->display->display_options['pager']['options']['items_per_page'] = 50;
-$handler->display->display_options['style_plugin'] = 'bulk';
-$handler->display->display_options['style_options']['columns'] = array(
- 'subject' => 'subject',
- 'name' => 'name',
- 'title' => 'title',
- 'timestamp' => 'timestamp',
- 'edit_comment' => 'edit_comment',
- 'delete_comment' => 'delete_comment',
-);
-$handler->display->display_options['style_options']['default'] = 'timestamp';
-$handler->display->display_options['style_options']['info'] = array(
- 'subject' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'name' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'title' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'timestamp' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'edit_comment' => array(
- 'align' => '',
- 'separator' => '',
- ),
- 'delete_comment' => array(
- 'align' => '',
- 'separator' => '',
- ),
-);
-$handler->display->display_options['style_options']['override'] = 1;
-$handler->display->display_options['style_options']['sticky'] = 1;
-$handler->display->display_options['style_options']['order'] = 'desc';
-$handler->display->display_options['style_options']['empty_table'] = 1;
-$handler->display->display_options['style_options']['execution_type'] = '2';
-$handler->display->display_options['style_options']['display_type'] = '0';
-$handler->display->display_options['style_options']['skip_confirmation'] = 0;
-$handler->display->display_options['style_options']['display_result'] = 1;
-$handler->display->display_options['style_options']['merge_single_action'] = 0;
-$handler->display->display_options['style_options']['hide_select_all'] = 0;
-/* Relationship: Comment: Content */
-$handler->display->display_options['relationships']['nid']['id'] = 'nid';
-$handler->display->display_options['relationships']['nid']['table'] = 'comment';
-$handler->display->display_options['relationships']['nid']['field'] = 'nid';
-$handler->display->display_options['relationships']['nid']['label'] = 'Node';
-$handler->display->display_options['relationships']['nid']['required'] = 0;
-/* Field: Comment: Title */
-$handler->display->display_options['fields']['subject']['id'] = 'subject';
-$handler->display->display_options['fields']['subject']['table'] = 'comment';
-$handler->display->display_options['fields']['subject']['field'] = 'subject';
-$handler->display->display_options['fields']['subject']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['subject']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['subject']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['subject']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['subject']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['subject']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['subject']['alter']['html'] = 0;
-$handler->display->display_options['fields']['subject']['link_to_comment'] = 1;
-/* Field: Comment: Author */
-$handler->display->display_options['fields']['name']['id'] = 'name';
-$handler->display->display_options['fields']['name']['table'] = 'comment';
-$handler->display->display_options['fields']['name']['field'] = 'name';
-$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['name']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['name']['alter']['html'] = 0;
-$handler->display->display_options['fields']['name']['link_to_user'] = 1;
-/* Field: Content: Title */
-$handler->display->display_options['fields']['title']['id'] = 'title';
-$handler->display->display_options['fields']['title']['table'] = 'node';
-$handler->display->display_options['fields']['title']['field'] = 'title';
-$handler->display->display_options['fields']['title']['relationship'] = 'nid';
-$handler->display->display_options['fields']['title']['label'] = 'Posted in';
-$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['title']['alter']['trim'] = 1;
-$handler->display->display_options['fields']['title']['alter']['max_length'] = '16';
-$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['title']['alter']['html'] = 0;
-$handler->display->display_options['fields']['title']['hide_empty'] = 0;
-$handler->display->display_options['fields']['title']['empty_zero'] = 0;
-$handler->display->display_options['fields']['title']['link_to_node'] = 1;
-/* Field: Comment: Updated date */
-$handler->display->display_options['fields']['timestamp']['id'] = 'timestamp';
-$handler->display->display_options['fields']['timestamp']['table'] = 'comment';
-$handler->display->display_options['fields']['timestamp']['field'] = 'changed';
-$handler->display->display_options['fields']['timestamp']['label'] = 'Posted';
-$handler->display->display_options['fields']['timestamp']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['timestamp']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['timestamp']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['timestamp']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['timestamp']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['timestamp']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['timestamp']['alter']['html'] = 0;
-$handler->display->display_options['fields']['timestamp']['date_format'] = 'time ago';
-/* Field: Comment: Edit link */
-$handler->display->display_options['fields']['edit_comment']['id'] = 'edit_comment';
-$handler->display->display_options['fields']['edit_comment']['table'] = 'comment';
-$handler->display->display_options['fields']['edit_comment']['field'] = 'edit_comment';
-$handler->display->display_options['fields']['edit_comment']['label'] = '';
-$handler->display->display_options['fields']['edit_comment']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['edit_comment']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['edit_comment']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['edit_comment']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['edit_comment']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['edit_comment']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['edit_comment']['alter']['html'] = 0;
-$handler->display->display_options['fields']['edit_comment']['hide_empty'] = 0;
-$handler->display->display_options['fields']['edit_comment']['empty_zero'] = 0;
-/* Field: Comment: Delete link */
-$handler->display->display_options['fields']['delete_comment']['id'] = 'delete_comment';
-$handler->display->display_options['fields']['delete_comment']['table'] = 'comment';
-$handler->display->display_options['fields']['delete_comment']['field'] = 'delete_comment';
-$handler->display->display_options['fields']['delete_comment']['label'] = '';
-$handler->display->display_options['fields']['delete_comment']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['delete_comment']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['delete_comment']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['delete_comment']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['delete_comment']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['delete_comment']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['delete_comment']['alter']['html'] = 0;
-$handler->display->display_options['fields']['delete_comment']['hide_empty'] = 0;
-$handler->display->display_options['fields']['delete_comment']['empty_zero'] = 0;
-/* Sort criterion: Comment: Updated date */
-$handler->display->display_options['sorts']['timestamp']['id'] = 'timestamp';
-$handler->display->display_options['sorts']['timestamp']['table'] = 'comment';
-$handler->display->display_options['sorts']['timestamp']['field'] = 'changed';
-$handler->display->display_options['sorts']['timestamp']['order'] = 'DESC';
-/* Filter criterion: Comment: Title */
-$handler->display->display_options['filters']['subject']['id'] = 'subject';
-$handler->display->display_options['filters']['subject']['table'] = 'comment';
-$handler->display->display_options['filters']['subject']['field'] = 'subject';
-$handler->display->display_options['filters']['subject']['operator'] = 'contains';
-$handler->display->display_options['filters']['subject']['exposed'] = TRUE;
-$handler->display->display_options['filters']['subject']['expose']['operator_id'] = 'subject_op';
-$handler->display->display_options['filters']['subject']['expose']['label'] = 'Title';
-$handler->display->display_options['filters']['subject']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['subject']['expose']['operator'] = 'subject_op';
-$handler->display->display_options['filters']['subject']['expose']['identifier'] = 'subject';
-$handler->display->display_options['filters']['subject']['expose']['required'] = FALSE;
-/* Filter criterion: Comment: Author */
-$handler->display->display_options['filters']['name']['id'] = 'name';
-$handler->display->display_options['filters']['name']['table'] = 'comment';
-$handler->display->display_options['filters']['name']['field'] = 'name';
-$handler->display->display_options['filters']['name']['operator'] = 'contains';
-$handler->display->display_options['filters']['name']['exposed'] = TRUE;
-$handler->display->display_options['filters']['name']['expose']['operator_id'] = 'name_op';
-$handler->display->display_options['filters']['name']['expose']['label'] = 'Author';
-$handler->display->display_options['filters']['name']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['name']['expose']['operator'] = 'name_op';
-$handler->display->display_options['filters']['name']['expose']['identifier'] = 'name';
-$handler->display->display_options['filters']['name']['expose']['required'] = FALSE;
-/* Filter criterion: Content: Title */
-$handler->display->display_options['filters']['title']['id'] = 'title';
-$handler->display->display_options['filters']['title']['table'] = 'node';
-$handler->display->display_options['filters']['title']['field'] = 'title';
-$handler->display->display_options['filters']['title']['relationship'] = 'nid';
-$handler->display->display_options['filters']['title']['operator'] = 'contains';
-$handler->display->display_options['filters']['title']['exposed'] = TRUE;
-$handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op';
-$handler->display->display_options['filters']['title']['expose']['label'] = 'Posted in';
-$handler->display->display_options['filters']['title']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
-$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
-$handler->display->display_options['filters']['title']['expose']['required'] = FALSE;
-/* Filter criterion: Comment: Approved */
-$handler->display->display_options['filters']['status']['id'] = 'status';
-$handler->display->display_options['filters']['status']['table'] = 'comment';
-$handler->display->display_options['filters']['status']['field'] = 'status';
-$handler->display->display_options['filters']['status']['value'] = 'All';
-$handler->display->display_options['filters']['status']['exposed'] = TRUE;
-$handler->display->display_options['filters']['status']['expose']['label'] = 'Published';
-$handler->display->display_options['filters']['status']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
-$handler->display->display_options['filters']['status']['expose']['required'] = FALSE;
-$handler->display->display_options['filters']['status']['expose']['remember'] = 1;
-
-/* Display: System */
-$handler = $view->new_display('system', 'System', 'system_1');
-$handler->display->display_options['path'] = 'admin/content/comment';
-$translatables['admin_content_comment'] = array(
- t('Defaults'),
- t('Comments'),
- t('more'),
- t('Apply'),
- t('Reset'),
- t('Sort by'),
- t('Asc'),
- t('Desc'),
- t('Items per page'),
- t('- All -'),
- t('Offset'),
- t('Node'),
- t('Title'),
- t('Author'),
- t('Posted in'),
- t('Posted'),
- t('Published'),
- t('System'),
-);
diff --git a/admin_views/views_default/admin_content_node.inc b/admin_views/views_default/admin_content_node.inc
deleted file mode 100644
index 0da35ad..0000000
--- a/admin_views/views_default/admin_content_node.inc
+++ /dev/null
@@ -1,323 +0,0 @@
-<?php
-
-$view = new view;
-$view->name = 'admin_content_node';
-$view->description = 'View, edit, and delete your site\'s content.';
-$view->tag = 'admin';
-$view->base_table = 'node';
-$view->human_name = '';
-$view->core = 0;
-$view->api_version = '3.0-alpha1';
-$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
-
-/* Display: Defaults */
-$handler = $view->new_display('default', 'Defaults', 'default');
-$handler->display->display_options['title'] = 'Content';
-$handler->display->display_options['css_class'] = 'admin-views-view';
-$handler->display->display_options['use_ajax'] = TRUE;
-$handler->display->display_options['access']['type'] = 'perm';
-$handler->display->display_options['access']['perm'] = 'administer nodes';
-$handler->display->display_options['cache']['type'] = 'none';
-$handler->display->display_options['query']['type'] = 'views_query';
-$handler->display->display_options['exposed_form']['type'] = 'basic';
-$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
-$handler->display->display_options['exposed_form']['options']['autosubmit'] = 0;
-$handler->display->display_options['exposed_form']['options']['autosubmit_hide'] = 1;
-$handler->display->display_options['pager']['type'] = 'full';
-$handler->display->display_options['pager']['options']['items_per_page'] = 50;
-$handler->display->display_options['style_plugin'] = 'bulk';
-$handler->display->display_options['style_options']['columns'] = array(
- 'title' => 'title',
- 'type' => 'type',
- 'name' => 'name',
- 'status' => 'status',
- 'changed' => 'changed',
- 'edit_node' => 'edit_node',
- 'delete_node' => 'delete_node',
-);
-$handler->display->display_options['style_options']['default'] = 'changed';
-$handler->display->display_options['style_options']['info'] = array(
- 'title' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'type' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'name' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'status' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'desc',
- 'align' => '',
- 'separator' => '',
- ),
- 'changed' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'edit_node' => array(
- 'align' => '',
- 'separator' => '',
- ),
- 'delete_node' => array(
- 'align' => '',
- 'separator' => '',
- ),
-);
-$handler->display->display_options['style_options']['override'] = 1;
-$handler->display->display_options['style_options']['sticky'] = 1;
-$handler->display->display_options['style_options']['order'] = 'desc';
-$handler->display->display_options['style_options']['empty_table'] = 1;
-$handler->display->display_options['style_options']['selected_operations'] = array(
- 'node_assign_owner_action' => 'node_assign_owner_action',
- 'views_bulk_operations_delete_node_action' => 'views_bulk_operations_delete_node_action',
- 'views_bulk_operations_taxonomy_action' => 'views_bulk_operations_taxonomy_action',
- 'node_publish_action' => 'node_publish_action',
- 'node_unpublish_action' => 'node_unpublish_action',
- 'node_mass_update:a27b9efabcd054685a549378b174ad11' => 0,
- 'system_message_action' => 0,
- 'views_bulk_operations_action' => 0,
- 'views_bulk_operations_script_action' => 0,
- 'node_make_sticky_action' => 0,
- 'node_make_unsticky_action' => 0,
- 'node_mass_update:8ce21b08bb8e773d10018b484fe4815e' => 0,
- 'node_mass_update:c4d3b28efb86fd703619a50b74d43794' => 0,
- 'views_bulk_operations_argument_selector_action' => 0,
- 'node_promote_action' => 0,
- 'node_mass_update:14de7d028b4bffdf2b4a266562ca18ac' => 0,
- 'node_mass_update:9c585624b9b3af0b4687d5f97f35e047' => 0,
- 'system_goto_action' => 0,
- 'node_unpromote_action' => 0,
- 'node_save_action' => 0,
- 'system_send_email_action' => 0,
- 'node_unpublish_by_keyword_action' => 0,
- 'node_mass_update:0ccad85c1ebe4c9ceada1aa64293b080' => 0,
-);
-$handler->display->display_options['style_options']['execution_type'] = '2';
-$handler->display->display_options['style_options']['display_type'] = '0';
-$handler->display->display_options['style_options']['skip_confirmation'] = 0;
-$handler->display->display_options['style_options']['display_result'] = 1;
-$handler->display->display_options['style_options']['merge_single_action'] = 1;
-$handler->display->display_options['style_options']['hide_select_all'] = 0;
-/* No results behavior: Global: Text area */
-$handler->display->display_options['empty']['area']['id'] = 'area';
-$handler->display->display_options['empty']['area']['table'] = 'views';
-$handler->display->display_options['empty']['area']['field'] = 'area';
-$handler->display->display_options['empty']['area']['empty'] = FALSE;
-/* Relationship: Content revision: User */
-$handler->display->display_options['relationships']['uid_1']['id'] = 'uid_1';
-$handler->display->display_options['relationships']['uid_1']['table'] = 'node_revision';
-$handler->display->display_options['relationships']['uid_1']['field'] = 'uid';
-$handler->display->display_options['relationships']['uid_1']['label'] = 'User';
-$handler->display->display_options['relationships']['uid_1']['required'] = 1;
-/* Relationship: Content: Taxonomy terms on node */
-$handler->display->display_options['relationships']['term_node_tid']['id'] = 'term_node_tid';
-$handler->display->display_options['relationships']['term_node_tid']['table'] = 'node';
-$handler->display->display_options['relationships']['term_node_tid']['field'] = 'term_node_tid';
-/* Field: Content: Title */
-$handler->display->display_options['fields']['title']['id'] = 'title';
-$handler->display->display_options['fields']['title']['table'] = 'node';
-$handler->display->display_options['fields']['title']['field'] = 'title';
-$handler->display->display_options['fields']['title']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['title']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['title']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['title']['alter']['html'] = 0;
-$handler->display->display_options['fields']['title']['link_to_node'] = 1;
-/* Field: Content: Type */
-$handler->display->display_options['fields']['type']['id'] = 'type';
-$handler->display->display_options['fields']['type']['table'] = 'node';
-$handler->display->display_options['fields']['type']['field'] = 'type';
-$handler->display->display_options['fields']['type']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['type']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['type']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['type']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['type']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['type']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['type']['alter']['html'] = 0;
-$handler->display->display_options['fields']['type']['link_to_node'] = 0;
-/* Field: User: Name */
-$handler->display->display_options['fields']['name']['id'] = 'name';
-$handler->display->display_options['fields']['name']['table'] = 'users';
-$handler->display->display_options['fields']['name']['field'] = 'name';
-$handler->display->display_options['fields']['name']['label'] = 'Author';
-$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['name']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['name']['alter']['html'] = 0;
-$handler->display->display_options['fields']['name']['link_to_user'] = 1;
-$handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0;
-/* Field: Content: Published */
-$handler->display->display_options['fields']['status']['id'] = 'status';
-$handler->display->display_options['fields']['status']['table'] = 'node';
-$handler->display->display_options['fields']['status']['field'] = 'status';
-$handler->display->display_options['fields']['status']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['status']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['status']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['status']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['status']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['status']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['status']['alter']['html'] = 0;
-$handler->display->display_options['fields']['status']['not'] = 0;
-/* Field: Content: Updated date */
-$handler->display->display_options['fields']['changed']['id'] = 'changed';
-$handler->display->display_options['fields']['changed']['table'] = 'node';
-$handler->display->display_options['fields']['changed']['field'] = 'changed';
-$handler->display->display_options['fields']['changed']['label'] = 'Updated';
-$handler->display->display_options['fields']['changed']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['absolute'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['external'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['replace_spaces'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['trim_whitespace'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['nl2br'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['changed']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['changed']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['changed']['alter']['html'] = 0;
-$handler->display->display_options['fields']['changed']['element_label_colon'] = 1;
-$handler->display->display_options['fields']['changed']['element_default_classes'] = 1;
-$handler->display->display_options['fields']['changed']['hide_empty'] = 0;
-$handler->display->display_options['fields']['changed']['empty_zero'] = 0;
-$handler->display->display_options['fields']['changed']['date_format'] = 'short';
-/* Field: Content: Edit link */
-$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
-$handler->display->display_options['fields']['edit_node']['table'] = 'node';
-$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
-$handler->display->display_options['fields']['edit_node']['label'] = '';
-$handler->display->display_options['fields']['edit_node']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['edit_node']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['edit_node']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['html'] = 0;
-$handler->display->display_options['fields']['edit_node']['hide_empty'] = 0;
-$handler->display->display_options['fields']['edit_node']['empty_zero'] = 0;
-/* Field: Content: Delete link */
-$handler->display->display_options['fields']['delete_node']['id'] = 'delete_node';
-$handler->display->display_options['fields']['delete_node']['table'] = 'node';
-$handler->display->display_options['fields']['delete_node']['field'] = 'delete_node';
-$handler->display->display_options['fields']['delete_node']['label'] = '';
-$handler->display->display_options['fields']['delete_node']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['delete_node']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['delete_node']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['delete_node']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['delete_node']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['delete_node']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['delete_node']['alter']['html'] = 0;
-$handler->display->display_options['fields']['delete_node']['hide_empty'] = 0;
-$handler->display->display_options['fields']['delete_node']['empty_zero'] = 0;
-/* Sort criterion: Content: Post date */
-$handler->display->display_options['sorts']['created']['id'] = 'created';
-$handler->display->display_options['sorts']['created']['table'] = 'node';
-$handler->display->display_options['sorts']['created']['field'] = 'created';
-$handler->display->display_options['sorts']['created']['order'] = 'DESC';
-/* Filter criterion: Content: Title */
-$handler->display->display_options['filters']['title']['id'] = 'title';
-$handler->display->display_options['filters']['title']['table'] = 'node';
-$handler->display->display_options['filters']['title']['field'] = 'title';
-$handler->display->display_options['filters']['title']['operator'] = 'contains';
-$handler->display->display_options['filters']['title']['exposed'] = TRUE;
-$handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op';
-$handler->display->display_options['filters']['title']['expose']['label'] = 'Title';
-$handler->display->display_options['filters']['title']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op';
-$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title';
-$handler->display->display_options['filters']['title']['expose']['remember'] = 1;
-/* Filter criterion: Content: Type */
-$handler->display->display_options['filters']['type']['id'] = 'type';
-$handler->display->display_options['filters']['type']['table'] = 'node';
-$handler->display->display_options['filters']['type']['field'] = 'type';
-$handler->display->display_options['filters']['type']['exposed'] = TRUE;
-$handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op';
-$handler->display->display_options['filters']['type']['expose']['label'] = 'Type';
-$handler->display->display_options['filters']['type']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op';
-$handler->display->display_options['filters']['type']['expose']['identifier'] = 'type';
-$handler->display->display_options['filters']['type']['expose']['remember'] = 1;
-$handler->display->display_options['filters']['type']['expose']['reduce'] = 0;
-/* Filter criterion: User: Name */
-$handler->display->display_options['filters']['uid']['id'] = 'uid';
-$handler->display->display_options['filters']['uid']['table'] = 'users';
-$handler->display->display_options['filters']['uid']['field'] = 'uid';
-$handler->display->display_options['filters']['uid']['relationship'] = 'uid_1';
-$handler->display->display_options['filters']['uid']['value'] = '';
-$handler->display->display_options['filters']['uid']['exposed'] = TRUE;
-$handler->display->display_options['filters']['uid']['expose']['operator_id'] = 'uid_op';
-$handler->display->display_options['filters']['uid']['expose']['label'] = 'Author';
-$handler->display->display_options['filters']['uid']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['uid']['expose']['operator'] = 'uid_op';
-$handler->display->display_options['filters']['uid']['expose']['identifier'] = 'name';
-$handler->display->display_options['filters']['uid']['expose']['remember'] = 1;
-$handler->display->display_options['filters']['uid']['expose']['reduce'] = 0;
-/* Filter criterion: Content: Published */
-$handler->display->display_options['filters']['status']['id'] = 'status';
-$handler->display->display_options['filters']['status']['table'] = 'node';
-$handler->display->display_options['filters']['status']['field'] = 'status';
-$handler->display->display_options['filters']['status']['value'] = 'All';
-$handler->display->display_options['filters']['status']['exposed'] = TRUE;
-$handler->display->display_options['filters']['status']['expose']['operator_id'] = '';
-$handler->display->display_options['filters']['status']['expose']['label'] = 'Published';
-$handler->display->display_options['filters']['status']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
-$handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
-$handler->display->display_options['filters']['status']['expose']['remember'] = 1;
-$handler->display->display_options['filters']['status']['expose']['multiple'] = FALSE;
-/* Filter criterion: Taxonomy term: Vocabulary */
-$handler->display->display_options['filters']['vid']['id'] = 'vid';
-$handler->display->display_options['filters']['vid']['table'] = 'taxonomy_term_data';
-$handler->display->display_options['filters']['vid']['field'] = 'vid';
-$handler->display->display_options['filters']['vid']['relationship'] = 'term_node_tid';
-$handler->display->display_options['filters']['vid']['exposed'] = TRUE;
-$handler->display->display_options['filters']['vid']['expose']['operator_id'] = 'vid_op';
-$handler->display->display_options['filters']['vid']['expose']['label'] = 'Vocabulary';
-$handler->display->display_options['filters']['vid']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['vid']['expose']['operator'] = 'vid_op';
-$handler->display->display_options['filters']['vid']['expose']['identifier'] = 'vid';
-$handler->display->display_options['filters']['vid']['expose']['remember'] = 1;
-$handler->display->display_options['filters']['vid']['expose']['reduce'] = 0;
-
-/* Display: System */
-$handler = $view->new_display('system', 'System', 'system_1');
-$handler->display->display_options['path'] = 'admin/content';
-$translatables['admin_content_node'] = array(
- t('Defaults'),
- t('Content'),
- t('more'),
- t('Apply'),
- t('Reset'),
- t('Sort by'),
- t('Asc'),
- t('Desc'),
- t('Items per page'),
- t('- All -'),
- t('Offset'),
- t('User'),
- t('term'),
- t('Title'),
- t('Type'),
- t('Author'),
- t('Published'),
- t('Updated'),
- t('Vocabulary'),
- t('System'),
-);
diff --git a/admin_views/views_default/admin_content_taxonomy.inc b/admin_views/views_default/admin_content_taxonomy.inc
deleted file mode 100644
index 6ccff72..0000000
--- a/admin_views/views_default/admin_content_taxonomy.inc
+++ /dev/null
@@ -1,250 +0,0 @@
-<?php
-
-$view = new view;
-$view->name = 'admin_content_taxonomy';
-$view->description = 'Manage tagging, categorization, and classification of your content.';
-$view->tag = 'admin';
-$view->view_php = '';
-$view->base_table = 'term_data';
-$view->is_cacheable = FALSE;
-$view->api_version = 2;
-$view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
-$handler = $view->new_display('default', 'Defaults', 'default');
-$handler->override_option('fields', array(
- 'name_1' => array(
- 'label' => '',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'exclude' => 1,
- 'id' => 'name_1',
- 'table' => 'vocabulary',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- 'name' => array(
- 'label' => 'Term',
- 'alter' => array(
- 'alter_text' => 0,
- 'text' => '',
- 'make_link' => 0,
- 'path' => '',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'link_to_taxonomy' => 1,
- 'exclude' => 0,
- 'id' => 'name',
- 'table' => 'term_data',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
- 'tid' => array(
- 'label' => 'Operations',
- 'alter' => array(
- 'alter_text' => 1,
- 'text' => 'edit',
- 'make_link' => 1,
- 'path' => 'admin/content/taxonomy/edit/term/[tid]',
- 'link_class' => '',
- 'alt' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'target' => '',
- 'help' => '',
- 'trim' => 0,
- 'max_length' => '',
- 'word_boundary' => 1,
- 'ellipsis' => 1,
- 'strip_tags' => 0,
- 'html' => 0,
- ),
- 'empty' => '',
- 'hide_empty' => 0,
- 'empty_zero' => 0,
- 'set_precision' => FALSE,
- 'precision' => 0,
- 'decimal' => '.',
- 'separator' => '',
- 'prefix' => '',
- 'suffix' => '',
- 'exclude' => 0,
- 'id' => 'tid',
- 'table' => 'term_data',
- 'field' => 'tid',
- 'relationship' => 'none',
- 'override' => array(
- 'button' => 'Override',
- ),
- ),
-));
-$handler->override_option('sorts', array(
- 'weight' => array(
- 'order' => 'ASC',
- 'id' => 'weight',
- 'table' => 'term_data',
- 'field' => 'weight',
- 'relationship' => 'none',
- ),
- 'name' => array(
- 'order' => 'ASC',
- 'id' => 'name',
- 'table' => 'term_data',
- 'field' => 'name',
- 'relationship' => 'none',
- ),
-));
-$handler->override_option('arguments', array(
- 'vid' => array(
- 'default_action' => 'ignore',
- 'style_plugin' => 'default_summary',
- 'style_options' => array(),
- 'wildcard' => '',
- 'wildcard_substitution' => 'All',
- 'title' => 'Terms in %1',
- 'breadcrumb' => '',
- 'default_argument_type' => 'fixed',
- 'default_argument' => '',
- 'validate_type' => 'none',
- 'validate_fail' => 'ignore',
- 'id' => 'vid',
- 'table' => 'vocabulary',
- 'field' => 'vid',
- 'validate_user_argument_type' => 'uid',
- 'validate_user_roles' => array(
- '2' => 0,
- '3' => 0,
- ),
- 'override' => array(
- 'button' => 'Override',
- ),
- 'relationship' => 'none',
- 'default_options_div_prefix' => '',
- 'default_argument_user' => 0,
- 'default_argument_fixed' => '',
- 'validate_argument_node_type' => array(
- 'image' => 0,
- 'page' => 0,
- 'story' => 0,
- ),
- 'validate_argument_node_access' => 0,
- 'validate_argument_nid_type' => 'nid',
- 'validate_argument_vocabulary' => array(
- '2' => 0,
- '1' => 0,
- ),
- 'validate_argument_type' => 'tid',
- 'validate_argument_transform' => 0,
- 'validate_user_restrict_roles' => 0,
- 'default_argument_php' => '',
- 'image_size' => array(
- '_original' => '_original',
- 'thumbnail' => 'thumbnail',
- 'preview' => 'preview',
- ),
- 'validate_argument_php' => '',
- ),
-));
-$handler->override_option('filters', array(
- 'vid' => array(
- 'operator' => 'in',
- 'value' => array(),
- 'group' => '0',
- 'exposed' => TRUE,
- 'expose' => array(
- 'use_operator' => 0,
- 'operator' => 'vid_op',
- 'identifier' => 'vid',
- 'label' => 'Vocabulary',
- 'optional' => 0,
- 'single' => 1,
- 'remember' => 1,
- 'reduce' => 0,
- ),
- 'id' => 'vid',
- 'table' => 'term_data',
- 'field' => 'vid',
- 'relationship' => 'none',
- 'override' => array(
- 'button' => 'Override',
- ),
- ),
-));
-$handler->override_option('access', array(
- 'type' => 'perm',
- 'perm' => 'administer taxonomy',
-));
-$handler->override_option('cache', array(
- 'type' => 'none',
-));
-$handler->override_option('title', 'Terms');
-$handler->override_option('use_ajax', TRUE);
-$handler->override_option('items_per_page', 50);
-$handler->override_option('use_pager', '1');
-$handler->override_option('style_plugin', 'bulk');
-$handler->override_option('style_options', array(
- 'grouping' => '',
- 'override' => 1,
- 'sticky' => 1,
- 'order' => 'asc',
- 'columns' => array(
- 'name_1' => 'name_1',
- 'name' => 'name',
- 'tid' => 'tid',
- ),
- 'info' => array(
- 'name_1' => array(
- 'sortable' => 0,
- 'separator' => '',
- ),
- 'name' => array(
- 'sortable' => 1,
- 'separator' => '',
- ),
- 'tid' => array(
- 'sortable' => 0,
- 'separator' => '',
- ),
- ),
- 'default' => 'name',
- 'execution_type' => '2',
- 'display_type' => '0',
- 'hide_select_all' => 0,
- 'skip_confirmation' => 0,
- 'display_result' => 1,
- 'merge_single_action' => 0,
- 'selected_operations' => array(
- 'views_bulk_operations_delete_term_action' => 'views_bulk_operations_delete_term_action',
- 'system_message_action' => 0,
- 'views_bulk_operations_action' => 0,
- 'views_bulk_operations_script_action' => 0,
- 'views_bulk_operations_argument_selector_action' => 0,
- 'system_goto_action' => 0,
- 'system_send_email_action' => 0,
- ),
-));
-$handler = $view->new_display('system', 'System', 'system_1');
-$handler->override_option('path', 'admin/content/taxonomy/%');
diff --git a/admin_views/views_default/admin_user_user.inc b/admin_views/views_default/admin_user_user.inc
deleted file mode 100644
index 3558062..0000000
--- a/admin_views/views_default/admin_user_user.inc
+++ /dev/null
@@ -1,242 +0,0 @@
-<?php
-
-$view = new view;
-$view->name = 'admin_user_user';
-$view->description = 'List, add, and edit users.';
-$view->tag = 'admin';
-$view->base_table = 'users';
-$view->human_name = '';
-$view->core = 0;
-$view->api_version = '3.0-alpha1';
-$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
-
-/* Display: Defaults */
-$handler = $view->new_display('default', 'Defaults', 'default');
-$handler->display->display_options['title'] = 'Users';
-$handler->display->display_options['css_class'] = 'admin-views-view';
-$handler->display->display_options['use_ajax'] = TRUE;
-$handler->display->display_options['access']['type'] = 'perm';
-$handler->display->display_options['access']['perm'] = 'administer users';
-$handler->display->display_options['cache']['type'] = 'none';
-$handler->display->display_options['query']['type'] = 'views_query';
-$handler->display->display_options['exposed_form']['type'] = 'basic';
-$handler->display->display_options['exposed_form']['options']['reset_button'] = TRUE;
-$handler->display->display_options['exposed_form']['options']['autosubmit'] = 0;
-$handler->display->display_options['exposed_form']['options']['autosubmit_hide'] = 1;
-$handler->display->display_options['pager']['type'] = 'full';
-$handler->display->display_options['pager']['options']['items_per_page'] = 50;
-$handler->display->display_options['style_plugin'] = 'bulk';
-$handler->display->display_options['style_options']['columns'] = array(
- 'name' => 'name',
- 'status' => 'status',
- 'rid' => 'rid',
- 'created' => 'created',
- 'access' => 'access',
- 'edit_node' => 'edit_node',
- 'delete_node' => 'delete_node',
-);
-$handler->display->display_options['style_options']['default'] = 'created';
-$handler->display->display_options['style_options']['info'] = array(
- 'name' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'status' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'rid' => array(
- 'align' => '',
- 'separator' => '',
- ),
- 'created' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'access' => array(
- 'sortable' => 1,
- 'default_sort_order' => 'asc',
- 'align' => '',
- 'separator' => '',
- ),
- 'edit_node' => array(
- 'align' => '',
- 'separator' => '',
- ),
- 'delete_node' => array(
- 'align' => '',
- 'separator' => '',
- ),
-);
-$handler->display->display_options['style_options']['override'] = 1;
-$handler->display->display_options['style_options']['sticky'] = 1;
-$handler->display->display_options['style_options']['order'] = 'desc';
-$handler->display->display_options['style_options']['empty_table'] = 1;
-$handler->display->display_options['style_options']['selected_operations'] = array(
- 'user_user_operations_block' => 'user_user_operations_block',
- 'views_bulk_operations_delete_user_action' => 'views_bulk_operations_delete_user_action',
- 'views_bulk_operations_user_roles_action' => 'views_bulk_operations_user_roles_action',
- 'system_send_email_action' => 'system_send_email_action',
- 'user_user_operations_unblock' => 'user_user_operations_unblock',
- 'system_block_ip_action' => 0,
- 'user_block_user_action' => 0,
- 'system_message_action' => 0,
- 'views_bulk_operations_action' => 0,
- 'views_bulk_operations_script_action' => 0,
- 'views_bulk_operations_argument_selector_action' => 0,
- 'system_goto_action' => 0,
-);
-$handler->display->display_options['style_options']['execution_type'] = '2';
-$handler->display->display_options['style_options']['display_type'] = '0';
-$handler->display->display_options['style_options']['skip_confirmation'] = 0;
-$handler->display->display_options['style_options']['display_result'] = 1;
-$handler->display->display_options['style_options']['merge_single_action'] = 0;
-$handler->display->display_options['style_options']['hide_select_all'] = 0;
-/* Field: User: Name */
-$handler->display->display_options['fields']['name']['id'] = 'name';
-$handler->display->display_options['fields']['name']['table'] = 'users';
-$handler->display->display_options['fields']['name']['field'] = 'name';
-$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['name']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['name']['alter']['html'] = 0;
-$handler->display->display_options['fields']['name']['link_to_user'] = 1;
-$handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0;
-/* Field: User: Active */
-$handler->display->display_options['fields']['status']['id'] = 'status';
-$handler->display->display_options['fields']['status']['table'] = 'users';
-$handler->display->display_options['fields']['status']['field'] = 'status';
-$handler->display->display_options['fields']['status']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['status']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['status']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['status']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['status']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['status']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['status']['alter']['html'] = 0;
-$handler->display->display_options['fields']['status']['not'] = 0;
-/* Field: User: Roles */
-$handler->display->display_options['fields']['rid']['id'] = 'rid';
-$handler->display->display_options['fields']['rid']['table'] = 'users_roles';
-$handler->display->display_options['fields']['rid']['field'] = 'rid';
-$handler->display->display_options['fields']['rid']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['rid']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['rid']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['rid']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['rid']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['rid']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['rid']['alter']['html'] = 0;
-$handler->display->display_options['fields']['rid']['type'] = 'ul';
-/* Field: User: Created date */
-$handler->display->display_options['fields']['created']['id'] = 'created';
-$handler->display->display_options['fields']['created']['table'] = 'users';
-$handler->display->display_options['fields']['created']['field'] = 'created';
-$handler->display->display_options['fields']['created']['label'] = 'Member for';
-$handler->display->display_options['fields']['created']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['created']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['created']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['created']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['created']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['created']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['created']['alter']['html'] = 0;
-$handler->display->display_options['fields']['created']['date_format'] = 'time ago';
-/* Field: User: Last access */
-$handler->display->display_options['fields']['access']['id'] = 'access';
-$handler->display->display_options['fields']['access']['table'] = 'users';
-$handler->display->display_options['fields']['access']['field'] = 'access';
-$handler->display->display_options['fields']['access']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['access']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['access']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['access']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['access']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['access']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['access']['alter']['html'] = 0;
-$handler->display->display_options['fields']['access']['date_format'] = 'time ago';
-/* Field: User: Edit link */
-$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node';
-$handler->display->display_options['fields']['edit_node']['table'] = 'users';
-$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node';
-$handler->display->display_options['fields']['edit_node']['label'] = '';
-$handler->display->display_options['fields']['edit_node']['alter']['alter_text'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['make_link'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['trim'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['word_boundary'] = 1;
-$handler->display->display_options['fields']['edit_node']['alter']['ellipsis'] = 1;
-$handler->display->display_options['fields']['edit_node']['alter']['strip_tags'] = 0;
-$handler->display->display_options['fields']['edit_node']['alter']['html'] = 0;
-/* Sort criterion: User: Created date */
-$handler->display->display_options['sorts']['created']['id'] = 'created';
-$handler->display->display_options['sorts']['created']['table'] = 'users';
-$handler->display->display_options['sorts']['created']['field'] = 'created';
-$handler->display->display_options['sorts']['created']['order'] = 'DESC';
-/* Filter criterion: User: Name */
-$handler->display->display_options['filters']['uid']['id'] = 'uid';
-$handler->display->display_options['filters']['uid']['table'] = 'users';
-$handler->display->display_options['filters']['uid']['field'] = 'uid';
-$handler->display->display_options['filters']['uid']['value'] = '';
-$handler->display->display_options['filters']['uid']['exposed'] = TRUE;
-$handler->display->display_options['filters']['uid']['expose']['operator_id'] = 'uid_op';
-$handler->display->display_options['filters']['uid']['expose']['label'] = 'Name';
-$handler->display->display_options['filters']['uid']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['uid']['expose']['operator'] = 'uid_op';
-$handler->display->display_options['filters']['uid']['expose']['identifier'] = 'uid';
-$handler->display->display_options['filters']['uid']['expose']['remember'] = 1;
-$handler->display->display_options['filters']['uid']['expose']['multiple'] = FALSE;
-$handler->display->display_options['filters']['uid']['expose']['reduce'] = 0;
-/* Filter criterion: User: Active */
-$handler->display->display_options['filters']['status']['id'] = 'status';
-$handler->display->display_options['filters']['status']['table'] = 'users';
-$handler->display->display_options['filters']['status']['field'] = 'status';
-$handler->display->display_options['filters']['status']['value'] = 'All';
-$handler->display->display_options['filters']['status']['exposed'] = TRUE;
-$handler->display->display_options['filters']['status']['expose']['operator_id'] = '';
-$handler->display->display_options['filters']['status']['expose']['label'] = 'Active';
-$handler->display->display_options['filters']['status']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op';
-$handler->display->display_options['filters']['status']['expose']['identifier'] = 'status';
-$handler->display->display_options['filters']['status']['expose']['remember'] = 1;
-$handler->display->display_options['filters']['status']['expose']['multiple'] = FALSE;
-/* Filter criterion: User: Roles */
-$handler->display->display_options['filters']['rid']['id'] = 'rid';
-$handler->display->display_options['filters']['rid']['table'] = 'users_roles';
-$handler->display->display_options['filters']['rid']['field'] = 'rid';
-$handler->display->display_options['filters']['rid']['exposed'] = TRUE;
-$handler->display->display_options['filters']['rid']['expose']['operator_id'] = 'rid_op';
-$handler->display->display_options['filters']['rid']['expose']['label'] = 'Roles';
-$handler->display->display_options['filters']['rid']['expose']['use_operator'] = FALSE;
-$handler->display->display_options['filters']['rid']['expose']['operator'] = 'rid_op';
-$handler->display->display_options['filters']['rid']['expose']['identifier'] = 'rid';
-$handler->display->display_options['filters']['rid']['expose']['remember'] = 1;
-$handler->display->display_options['filters']['rid']['expose']['reduce'] = 0;
-$handler->display->display_options['filters']['rid']['reduce_duplicates'] = 0;
-
-/* Display: System */
-$handler = $view->new_display('system', 'System', 'system_1');
-$handler->display->display_options['path'] = 'admin/people';
-$translatables['admin_user_user'] = array(
- t('Defaults'),
- t('Users'),
- t('more'),
- t('Apply'),
- t('Reset'),
- t('Sort by'),
- t('Asc'),
- t('Desc'),
- t('Items per page'),
- t('- All -'),
- t('Offset'),
- t('Name'),
- t('Active'),
- t('Roles'),
- t('Member for'),
- t('Last access'),
- t('System'),
-);
diff --git a/images/arrow-rtl.png b/images/arrow-rtl.png
deleted file mode 100644
index dccaad7..0000000
--- a/images/arrow-rtl.png
+++ /dev/null
Binary files differ
diff --git a/images/arrow.png b/images/arrow.png
deleted file mode 100644
index 3c3166f..0000000
--- a/images/arrow.png
+++ /dev/null
Binary files differ
diff --git a/images/bkg-red.png b/images/bkg-red.png
deleted file mode 100644
index 80647b0..0000000
--- a/images/bkg-red.png
+++ /dev/null
Binary files differ
diff --git a/images/bkg.png b/images/bkg.png
deleted file mode 100644
index 9de137b..0000000
--- a/images/bkg.png
+++ /dev/null
Binary files differ
diff --git a/images/bkg_tab.png b/images/bkg_tab.png
deleted file mode 100644
index 6ee3de0..0000000
--- a/images/bkg_tab.png
+++ /dev/null
Binary files differ
diff --git a/images/icon_users.png b/images/icon_users.png
deleted file mode 100644
index 0923fda..0000000
--- a/images/icon_users.png
+++ /dev/null
Binary files differ
diff --git a/tests/admin_menu.test b/tests/admin_menu.test
deleted file mode 100644
index 239fd91..0000000
--- a/tests/admin_menu.test
+++ /dev/null
@@ -1,172 +0,0 @@
-<?php
-
-/**
- * @file
- * Administration menu functionality tests.
- */
-
-/**
- * Base class for all administration menu web test cases.
- */
-class AdminMenuWebTestCase extends DrupalWebTestCase {
- function setUp() {
- // Enable admin menu module and any other modules.
- $args = func_get_args();
- $modules = $args[0];
- $modules[] = 'admin_menu';
- parent::setUp($modules);
-
- // Disable client-side caching.
- variable_set('admin_menu_cache_client', FALSE);
- }
-
- /**
- * Check that an element exists in HTML markup.
- *
- * @param $xpath
- * An XPath expression.
- * @param $message
- * The message to display along with the assertion.
- * @param $group
- * The type of assertion - examples are "Browser", "PHP".
- * @return
- * TRUE if the assertion succeeded, FALSE otherwise.
- */
- protected function assertElementByXPath($xpath, $message, $group = 'Other') {
- return $this->assertTrue($this->xpath($xpath), $message, $group);
- }
-
- /**
- * Check that an element does not exist in HTML markup.
- *
- * @param $xpath
- * An XPath expression.
- * @param $message
- * The message to display along with the assertion.
- * @param $group
- * The type of assertion - examples are "Browser", "PHP".
- * @return
- * TRUE if the assertion succeeded, FALSE otherwise.
- */
- protected function assertNoElementByXPath($xpath, $message, $group = 'Other') {
- return $this->assertFalse($this->xpath($xpath), $message, $group);
- }
-}
-
-/**
- * Test menu links depending on user permissions.
- */
-class AdminMenuPermissionsTestCase extends AdminMenuWebTestCase {
- public static function getInfo() {
- return array(
- 'name' => 'Menu link permissions',
- 'description' => 'Verify that menu is displayed according to user permissions.',
- 'group' => 'Administration menu',
- );
- }
-
- function setUp() {
- parent::setUp(array('contact'));
- }
-
- /**
- * Test that the links are added to the page (no JS testing).
- */
- function testPermissions() {
- // Anonymous users should not see the menu.
- $this->drupalGet('node');
- $this->assertNoElementByXPath('//div[@id="admin-menu"]', t('Admin menu not displayed to anonymous.'));
-
- // Create a new user who can access administration menu, but without the
- // permission 'display drupal links'.
- $permissions = array('administer site configuration', 'access administration pages', 'access content overview', 'bypass node access', 'access administration menu');
- // @see http://drupal.org/node/719964
- if (module_exists('dashboard')) {
- $permissions[] = 'access dashboard';
- }
- $admin_user = $this->drupalCreateUser($permissions);
- $this->drupalLogin($admin_user);
-
- // Check that the user can see the admin links, but not the drupal links.
- $this->assertElementByXPath('//div[@id="admin-menu"]', t('Administration menu is displayed.'));
- $this->drupalGet('node');
- $this->assertElementByXPath('//div[@id="admin-menu"]//a[contains(@href, "/admin/content/node")]', t('Administer content link found.'));
- $this->assertNoElementByXPath('//div[@id="admin-menu"]//a[@href="http://drupal.org"]', t('Drupal links not found.'));
- $this->assertNoElementByXPath('//div[@id="admin-menu"]//a[contains(@href, "/admin/structure/contact")]', t('Contact module link not found.'));
-
- // Create a new user with the permission 'display drupal links'.
- $permissions = array('administer site configuration', 'access administration pages', 'access content overview', 'access administration menu', 'display drupal links', 'administer contact forms');
- // @see http://drupal.org/node/719964
- if (module_exists('dashboard')) {
- $permissions[] = 'access dashboard';
- }
- $admin_user2 = $this->drupalCreateUser($permissions);
- $this->drupalLogin($admin_user2);
- $this->drupalGet('node');
- $this->assertElementByXPath('//div[@id="admin-menu"]//a[@href="http://drupal.org"]', t('Drupal links found.'));
- $this->assertElementByXPath('//div[@id="admin-menu"]//a[contains(@href, "/admin/structure/contact")]', t('Contact module link found.'));
- }
-}
-
-/**
- * Test contained links in administration menu.
- */
-class AdminMenuLinksTestCase extends AdminMenuWebTestCase {
- public static function getInfo() {
- return array(
- 'name' => 'Menu links',
- 'description' => 'Verify that admin menu contains proper links.',
- 'group' => 'Administration menu',
- );
- }
-
- function setUp() {
- parent::setUp();
-
- // Create and log in a full-blown administrative user.
- $permissions = module_invoke_all('permission');
- $admin_user = $this->drupalCreateUser(array_keys($permissions));
- $this->admin_user = $this->drupalLogin($admin_user);
- }
-
- /**
- * Test link contents.
- *
- * @todo Disabled due to latest changes in HEAD.
- * @see http://drupal.org/node/420816
- */
- function DISABLEDtestLinkContents() {
- // Create a content-type with special characters.
- $info = array(
- 'type' => 'special',
- 'name' => 'Cool & Special',
- 'base' => 'node_content',
- );
- $info = (object) node_type_set_defaults($info);
- node_type_save($info);
- drupal_flush_all_caches();
-
- // Fetch a page.
- $this->drupalGet('node');
- $this->assertElementByXPath('//div[@id="admin-menu"]', t('Administration menu is displayed.'));
-
- // Verify that proper links are displayed.
- // We are explicitly NOT using t() here, since the purpose is to test our
- // custom link titles and 't' option.
- $links = array(
- '/admin/structure/types/article' => t('Article'),
- '/admin/structure/types/special' => t('Cool & Special'),
- );
- foreach ($links as $url => $title) {
- $this->assertFieldByXPath('//div[@id="admin-menu"]//a[contains(@href, "' . $url . '")]', $title, t('!link-title content-type link found.', array('!link-title' => $title)));
- }
- $links = array(
- '/node/add/article' => t('Article'),
- '/node/add/special' => t('Cool & Special'),
- );
- foreach ($links as $url => $title) {
- $this->assertFieldByXPath('//div[@id="admin-menu"]//a[contains(@href, "' . $url . '")]', $title, t('Create content &raquo; !link-title link found.', array('!link-title' => $title)));
- }
- }
-}
-