Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Softros LAN messenger 9.2
GetOrgChart 2.5.2
Alvas.Audio 2018.0
Bytescout PDF Viewer SDK 9.0.0.3079
SecureBridge 8.2
Magento Language Translator 1.0
Australia Post Shipping For Magento 1.0
Excel Add-in for SQL Server 1.7
ODBC Driver for BigCommerce 1.3
Excel Add-in for SQLite 1.7
SentiVeillance SDK Trial 6.0.183849
dotConnect for Dynamics CRM 1.7
Entity Developer 6.3
dbForge Documenter for Oracle 1.0
dbForge Data Generator for Oracle 2.0
Top Code
Online Food Ordeing System 1.0
K-means algorithm demo 1.0
Silence removal in speech signals 1.0
Ping Pong Game Code Script 1.1
Kalman Filter Tutorial 1.0
Ticket Booking System 1.0
Pet Listing & Classified Ads Script 1.0
Hotel Management - Full Board Version 6.55
Visual Basic utilities 20071207085454
JustAjax Table 0.7
IMPLEMENTATION OF GAUSS SEIDEL METHOD IN MATLAB 1.0
Huffman Coding and Decoding for Text Compression 1.1
Performance Tips and Tricks in .NET Applications
Car Dealer Website 1.0
Oracle Data Access Components 6.00
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
Advanced MLM Software 1.2
Online Food Ordeing System 1.0
PHP Image Resize Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
PHP Point of sale 10.0
Travel Portal Script 9.29
Excel Add-in for Bigcommerce 1.6
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Chain Menu Access API 7.x-1.0
File ID: 104709






Chain Menu Access API 7.x-1.0
Download Chain Menu Access API 7.x-1.0http://drupal.orgReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 0
Submit Rating:
Chain Menu Access API 7.x-1.0 Description
Description: Chain Menu Access API is has no functionality on its own d-deOCL install it only if another module requests it.

The remainder of this page is directed towards module developers:

Chain Menu Access API allows your module to chain its own menu access callback functions into other modules' menu router entries.

Rationale

In Drupal 7 menu access is determined very early during the page loading process. If your module wants to alter the access to some other other module's paths, then the cleanest way to do this is to implement hook_menu_alter() and to change the values of the "access callback" and "access argument" keys of the corresponding menu router items (see hook_menu()).

The trivial approach is to simply replace the values of those two keys with your own and take over the access checking completely. However, this is rarely appropriate. The usual case is that your module wants to either restrict or extend access, and the resulting behavior should be a joint effort between your module and the module that owns the menu item.

Even more generally, there may be additional third-party modules that are interested in restricting or extending access, so simply replacing the values is a no-no! Rather, you want to install your callback in such a way that Drupal calls both your callback and the original one(s) and that it figures out the final result from the two votes.

The original callback doesn't know about any of this, so you have to take the lead and manage it. This is called chaining: In the general case, several modules have already installed their callbacks, then your module inserts its own callback in the front of the existing chain, and some other modules may come after you and add even more callbacks in front of you.

This is done by implementing hook_menu_alter() and changing the "access callback" and "access argument" values of the desired menu items. For each item you need to save the old values, install your own callback, that when the callback is called, you need to evaluate the old access and the new one defined by your module, and then merge the two.

This can certainly be done 'manually,' but it's not quite easy to get right in all cases, and if you need to do it for multiple menu items, then it can become tedious. This is the one thing that Chain Menu Access API does, and it does it very well

License: Shareware

Related: original, figures, calls, Replacing, final, result, Manage, called

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 0



More Similar Code

Manages relationships between node ids and menu items.

The Menu Node API project fills in one of the "missing tables" in Drupal 6. This module does nothing on its own. Instead, it creates and maintains a {menu_node} table. This table maps the relationship between a node and its menu item (if any).

The module requires the optional core Menu module to be enabled. It also requires Drupal 6.10 or higher. (See this...



HashBean is Java Based Database Access API's which eliminates the use of ORM framework and Java Beans! It is very flexible yet easy to use. It is Based on JDBC & SQL.



The Menu Node Views module provides Views integration for nodes assigned to the menu system. This module is in alpha development.
Dependencies

Use of the module requires that you download and install the Menu Node API.



Swipht technologies developed a set of security modules with sponsorship from Portland State University. The modules provide roles and user specific security permissions for menus, menu items, nodes, and security integration into the...



This very light-weight module allows additional permissions to be created and managed through a administration form. It uses the menu access system to allow or dissalow access to it.

On the administration page a user is able to create a...



This an extension to the Domain Access module which is used to create many domains from a single installation.

For what I see as a problem is that the domain module uses the node access api's to determine which nodes are displayed on...



Content Injector is a complete content management system that dynamically 'injects' content into pages while creating menu links (if the user requires them) and a whole lot more!

Features include:
- Page/Article Management with...



Content Injector is a complete content management system that dynamically 'injects' content into pages whilst creating menu links (if the user requires them) and a whole lot more!

Features include:
- Page/Article Management with...



Mini Introduction

This module is a concatenation of many little things that I like to have and usually would have to create a "mini-module" to get them to work.

The idea is simple: if I wanted to have a Delete tab...



Dto.java and others classes - for data transmission from/to view (with EL - Expression Language" ) layer to/from business and persistence layer in J2EE application. Dto extends from HashMap class of Java API for encapsulate any type of...

User Review for Chain Menu Access API
- required fields
     

Please enter text on the image