You are here

function panelizer_node_type_load in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 panelizer.module \panelizer_node_type_load()

Menu load callback to scrub a node bundle from the URL safe equivalent.

File

./panelizer.module, line 672
The Panelizer module attaches panels to entities, providing default panels and allowing each panel to be configured independently by privileged users.

Code

function panelizer_node_type_load($name) {
  if ($type = node_type_get_type(strtr($name, array(
    '-' => '_',
  )))) {
    return $type->type;
  }
}