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
VB.Net PDF 4.4.7
SuiteCRM Survey Rocket Plugin 1.0
Airbnb Clone Script | Airbnb Clone 4.3.1
IP2Location Geolocation Database 2018
ODBC Driver for Salesforce 1.5
Rapid PHP 2018 15.0
Bytescout BarCode Generator SDK 4.70.0.981
Data Puppy Lite (32-bit) 1.0
ProZ clone script 1.0.3
VideoCap Live Streaming SDK ActiveX 8.5
Magento Web to Print 1.0
dbForge Data Compare for MySQL 5.4
dbForge Query Builder for MySQL 4.3
ODBC Driver for NetSuite 1.2
Rapid CSS 2018 15.0
Top Code
Mann-Kendall Tau-b with Sen's Method (enhanced) 1.0
Online Food Ordeing System 1.0
OpenCV Delphi wrapper 1.0
Etsy Clone Script v 2.0
Fuzzy k means 1.0
Low Pass Butterworth Filter 1.0
ABBYY FineReader Engine 9.0
Advanced Forced Matrix Script 1.0
Feed The Snake 1.3
OpenELD 1.0
BMI Calculator Widget 1.3
Pro MLM 1
Dione Card Validator 1.0.2
ECG Beat Calculation 1.0
Test and Measurement Widgets 1.0
Top Rated
Output Messenger 1.8.0
Aliexpress Clone- Ec21 Script 1
Indiegogo Clone 3.0
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
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
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