You are here

function panelizer_get_type_key in Panelizer 6

Same name and namespace in other branches
  1. 7 panelizer.module \panelizer_get_type_key()

Get the panelizer type and key from a default name.

Parameters

$default_name: The default name, which should be in the format of TYPE_NAME

Return value

An array with two keys, the type (i.e, node, user) and the key.

File

./panelizer.module, line 327
panelizer.module

Code

function panelizer_get_type_key($default_name) {
  $separator = ':';
  return @explode($separator, $default_name, 2);
}