mysite_type_droplet_type

Definition

mysite_type_droplet_type($type_key)
plugins/types/droplet.inc, line 596

Description

Helper function to parse the type_key

Parameters

$type_key The type_key taken from {mysite_content}

Return value

The content type (droplet, block, or view)

Code

function mysite_type_droplet_type($type_key) {
  $subtype = explode(':', $type_key);
  $type = $subtype[0];
  return $type;
}