You are here

function node_gallery_menu_alter in Node Gallery 6.2

Same name and namespace in other branches
  1. 6 node_gallery.module \node_gallery_menu_alter()

Implementation of hook_menu_alter().

File

./node_gallery.module, line 174
Node gallery module file

Code

function node_gallery_menu_alter(&$items) {

  // Disable all Node Gallery image types from showing up on node/add
  $types = node_gallery_get_types('image');
  foreach ($types as $type) {
    $items['node/add/' . str_replace('_', '-', $type)]['type'] = MENU_CALLBACK;
  }
}