Home > By category > Scripts >Modules > Chain Menu Access API



Chain Menu Access API

  • Downloads: 
  • Views: 
  • Rating:

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

Free download from Shareware Connection - Chain Menu Access API is has no functionality on its own

Publisher: salvis | License: Shareware
Version: 7.x-1.0 | Size: 10 KB | Platform: PHP, Scripts
Released Date: 11-06-2013 | Rating: 0 | Title: Chain Menu Access API

Author Url: http://drupal.org
Program Info Url: http://drupal.org
Download Url: http://ftp.drupal.org/files/projects/chain_menu_access-7.x-1.0.tar.gz

More downloads from Chain Menu Access API publisher salvis:

Mail Editor - The Mail Editor module lets you edit the bodies and subjects of all emails

Chain Menu Access API keywords:
Chain Menu Access API related downloads:

Menu Node API - Manages relationships between node ids and menu items.

8StartButton - 8StartButton is not just a start screen button, it is a full start button with a full new designed start menu Access the new 8StartButton start menu, the Windows 8 apps screen, or the Windows 8 start screen with a regular left mouse button click Fu

Drop Down Menu Tool - This tool helps you to create dynamic java script dropdown menu with elegant look and colors of your choice. Dropdown menu is the menu that appears on onmouseover event, so it is also called as mouseover menu.

DAPL - Direct Access Programming Library (DAPL) is a high performance Remote Direct Memory Access API (see www.datcollaborative.org). Linux & Windows uDAPL maintenance/development is now discussed on general@lists.openfabrics.org & ofw@lists.openfabrics.

SkyJNI - A C++ API for making calls to java very simple.

Shareware Connection periodically updates pricing and software information of 'Chain Menu Access API' from company source 'salvis' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'Chain Menu Access API' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Chain Menu Access API.

New Reviews

WebAcappella - Web design sector has witnessed several trends and technological innovations affect website development in big ways. With time, designing websites has become easier. Nowadays, you can find web design software that nearly eliminates the need to ...

Nuance 4 Dragon Dictate Mac - While Mac users resort to using third party apps for image editing or video editing needs, they are not bothered much about voice dictation software. This has also got to do with the fact that latest versions of OS X including Mountain Lion ...

Poser - The concept of 3D animation and modeling may seem amazing to the viewers but those who are into the industry know it is no cakewalk. Majority of 3D animation and modeling software known for some of the amazing animations and CGI work in films ...

Apple iMovie - For higher end video editing and post production related needs on Mac OS, the preferred choice is FCP in most instances. However, not all Mac users need to deal with a feature laden, sophisticated editor for casual needs. For casual to moderate ...

Sigma Internet Monitoring - There is no denying the huge importance of internet in human life. Without the web, it has literally become imposable to carry on a lot of personal and professional activities, irrespective of your age, gender and qualification. While the web ...

PCMark 8 - Not every PC user would have penchant for running new benchmarks and benchmarking software in their computers. It is only hardcore gamers and seasoned users who like tinkering around with various settings in PC benchmarking tools. Such apps also ...

Dragon NaturallySpeaking Standard - No matter what type of computer you use, it becomes necessary to use keyboard for typing. This is the case with average home users as well as network administrators working in professional setups. Would not it be nice if you could give your hands ...

Screenshot Captor - Nowadays, a lot of Windows users need to take screenshots for professional and personal usage needs. It may be required to share an interesting image from web site or part of web pages with friends, making tutorials etc. However, freeware screen ...

SyncMate - Just like windows users, Macintosh users also need to sync their data with myriads of other devices and other Macs. It is possible to use Apple’s much touted iCloud to sync a Mac with other iOS based devices but that may not fit ...

SyncBack SE - For any computer users, the importance of backup is immense. Even if you use a powerful computer with latest storage technology, taking backup of data is near mandatory. However, a number of users find the task of choosing the right backup ...




New Downloads

B2B E-Commerce Software -
TradeMart v1.0

NCrypted - Trading Software of
Alibaba Clone Script is a
superb answer for dispatch
your own business to business
site.

Document Creator

Document Creator is a simple
back-end script developed by
PHPJabbers enabling users to
generate multiple documents
using ...

HR Management System

HR Management System,
developed by Ambit
Technologies Pvt. Ltd. is a
comprehensive Human Resource
Management System ...

Ubercart Event Registration

event registration system

routh stability table
generator

It gets command line inputs
from user about highest power
and coefficients of
characteristic equation and
generates the table

Kwartz

Kwartz is a template system
which realized the concept
"Independence of Presentation
Logic".

Phase Based Template
Matching

Phase information is used for
matching the input imagery
with the template.

MEMS Accelerometer
Calibration using Gauss
Newton Method

All you have to do is to place
the accelerometer in 9
different static positions and
record the x, y & z values.

Genetic Algorithms
Application

This code is an application of
GA.

Ajax
autosuggest/autocomplete
from database

Ajax autosuggest/autocomplete
from database helps the
visitor and presents in real
time some possible results
based on ...

Loved.by Pro

Would you like to be paid for
blogging or writing on your
website? It's simple! Loved.by
Pro will make any link to a
...

Clipping Indicator

Clipping is the main program.
There are three inputs: y is
the time record,
threshhold_value is the
clipping threshhold, ...