function command_buttons_type_load in Command Buttons 7
Properly format the type from the URL version to the internal version.
File
- ./
command_buttons.module, line 230
Code
function command_buttons_type_load($type) {
$type = str_replace('-', '_', $type);
$entity_info = entity_get_info('command_button');
if (isset($entity_info['bundles'][$type])) {
return $type;
}
}