Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.478.136 Times

Chain Menu Access API 7.x-1.0

  Date Added: May 16, 2013  |  Visits: 293

Chain Menu Access API

Report Broken Link
Printer Friendly Version


Product Homepage
Download (40 downloads)

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.RationaleIn 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

Requirements: No special requirements
Platforms: PHP
Keyword: Called Calls Figures Final Manage Original Replacing Result
Users rating: 0/10

License: Shareware Size: 10 KB
CHAIN MENU ACCESS API RELATED
Development Tools  -  lexmkpackage 1.0
Makes a software package by lexically checking the dependencies of the specified m-file(s). Uses the lexdepfun.m function, rather than Mathwork's depfun.m program, so can be used for assembling packages for GUI applications (Matlab's depfun.m does...
10 KB  
Utilities  -  rfoo for Linux 1.2.1
rfoo (remote foo) is a fast RPC module for Python which can do up to 100,000 RPC calls per second on a regular computer. It includes a fast serialization module called rfoo.marsh which extends the Python built in marshal module by eliminating...
10.24 KB  
Development Tools  -  gridxy2 1.0
Example:gridxy2(get(gca,'XTick'),get(gca,'YTick'), 'Color','y','Linestyle',':');plots yellow X & Y gridlines at the same points as originally plotted on an imagesc plot.The grid line locations can be arbitrary.It can plot different colors for...
10 KB  
Database Tools  -  MM::CDatabase 1.0
MM::CDatabase is an abstract class that can be used to execute SQL queries with parameters. It allows loading queries defined in files.The query parameters are defined in arrays that associate parameter names with the respective values.To use...
10 KB  
Modules  -  Suppress Teasers 6.x-1.1
ConceptThe current Drupal core defines two content types, page and story. Anyone with 'access content' permissions is able to see both the nodes these content types define, as well as the teasers that they provide.When creating modules that define...
10 KB  
Modules  -  Media Mover Remove 6.x-1.x-de
Adds a complete function to Media Mover to remove/delete files from the Harvest, Process and Storage steps. Should be used with caution as it has not undergone significant testing, and if configured improperly could result in loss of original...
10 KB  
Programming  -  dingus 0.3.1
A dingus is sort of like a mock object. The main difference is that you don't set up expectations ahead of time. You just run your code, using a dingus in place of another object or class, and it will record what happens to it. Then, once your...
10.24 KB  
Text Editors  -  DocBook Doclet (Herold) 6.0.1
DocBook Doclet (dbdoclet) creates DocBook code from Java source documentation. DocBook Doclet is helpful, if you want to print reference handbooks of your API. The program can be used as javadoc doclet or as standalone application. The...
55.64 MB  
Programming  -  Fenris 0.07-m2 build 3245
Fenris is a suite of tools suitable for code analysis, debugging, protocol analysis, reverse engineering, forensics, diagnostics, security audits, vulnerability research and many other purposes. The main logical components are: - Fenris:...
1.1 MB  
Arcade Style Games  -  Areasteroids 1.0
Areasteroids is an educational free software to learn how to calculate the geometric figures area. The original idea was based on the old arcade game Asteroids of Atari.
93.23 KB  
NEW DOWNLOADS IN SCRIPTS, MODULES
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Modules  -  TinyMCE Node Picker 6.x-2.1
This module will de discontinued and replaced with Node Picker as soon as a stable release is available.TinyMCE Node Picker provides a button in TinyMCE that displays a list of links to content. Choosing a link inserts it into the editor.The...
20.48 KB  
Modules  -  Fapilicious 5.x-1.x-de
Fapilicious is a collection of FormAPI goodies.I hope to make it a repository of reusable FormAPI trickery and short cuts. Currently it has small collection of powerful FormAPI element validators.Please submit your favorite tricks as patches so we...
10 KB  
Modules  -  OpenCalais 6.x-3.6
The Calais Collection is an integration of the Thomson Reuters' Calais web service into the Drupal platform. The Calais Web Service automatically creates rich semantic metadata for the content you submit d-deOCt in well under a second. Using...
61.44 KB  
Modules  -  Donation Goals 6.x-1.x-de
The Donation Goals module lets you create nodes of the type "Donation Goal." These goals allow you to set an amount of money you'll need for whatever you're saving up for. Visitors of the site can then donate money through PayPal. Once the target...
20.48 KB  
Modules  -  Plica Twitter 1.0.1
Plica TwitterInstallation : * Download, unzip, and install plugin dir in /wp-content/plugins * Activate * All right now
10 KB