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
Social Media Script 1.0
ByteScout PDF Renderer SDK 9.0.0.3079
Magento Mobile App Builder 2.0.0
Binary MLM Plan 1.0.2
Review Assistant 4.0
SSIS Data Flow Components 1.8
Maulik Shah 1.0
GetOrgChart 2.4.91
ODBC Driver for SQL Azure 2.4
EntityDAC 2.0
CarMax Clone Script 1.0
Mega Menu Magento 2 2.0
Luxand FaceSDK 6.5.1
Data Puppy Lite (64-bit) 1.0
Bytescout BarCode Reader SDK 10.1.0.1778
Top Code
Wired Ekleipo 1.0
HOW TO: Use Database and ASP Sessions to Implement ASP Security
Hotel Management - Full Board Version 6.55
HR-Leave Management 1.0
Flash Animated OsCommerce Templates
Image Edge Detection Using Ant Colony Optimization 1.0
GnuWin64 64
PHP Point of sale 10.0
validate email address
Netflix Clone 3.0
CGIMachine - Access Counter 2.20
How To Control Page Output Caching in ASP.NET by Using Visual C# .NET
Scratch n Win
Hovitaga OpenSQL Editor 1.0
PHP Image Resize Script 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