You are here

function _hacked_get_menu_tail in Hacked! 5

Helper function for grabbing menu tail.

1 call to _hacked_get_menu_tail()
hacked_menu in ./hacked.module
Implementation of hook_menu().

File

./hacked.module, line 75
The Hacked! module, shows which project have been changed since download.

Code

function _hacked_get_menu_tail($limit) {

  // Extract tail as remainder of path
  $path = explode('/', $_GET['q'], $limit);
  return count($path) == $limit ? $path[$limit - 1] : FALSE;
}