Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Provides an API allowing the addition of new menu access functions on top of existing ones.

Example:

/**
 * Implements hook_menu_alter().
 *
 * The natural place to inject additional menu-access checks to existing menu
 * items is obviously hook_menu_alter.
 */
function menuaccessstack_example_menu_alter(&$items) {
  // Add the access callback menuaccessstack_example_no_foo with the access
  // arguments array(2) to the router item taxonomy/term/%taxonomy_term.
  menuaccessstack_push($items['taxonomy/term/%taxonomy_term'], 'menuaccessstack_example_no_foo', array(2));
}

/**
 * Never grant access to the term-page when the term name contains "foo".
 */
function menuaccessstack_example_no_foo($term) {
  return (strpos($term->name, 'foo') === FALSE);
}

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Module categories: Content Access Control