You are here

function rabbit_hole_get_action_bundle in Rabbit Hole 7.2

Gets the action for a bundle.

Parameters

string $entity_type: The entity type of the bundle.

string $bundle: The bundle that we're checking.

Return value

int The Rabbit Hole action set for the bundle.

6 calls to rabbit_hole_get_action_bundle()
rabbit_hole_form in ./rabbit_hole.module
Form structure for the Rabbit Hole configuration.
rabbit_hole_get_action in ./rabbit_hole.module
Determines the actual action for an entity.
rh_bean_form_submit in modules/rh_bean/rh_bean.module
Custom submit function for the bean edit form.
rh_file_entity_edit_submit in modules/rh_file/rh_file.module
Custom submit function for the file entity edit form.
rh_node_node_form_submit in modules/rh_node/rh_node.module
Custom submit function for the node form.

... See full list

File

./rabbit_hole.module, line 506
Main module file for Rabbit Hole.

Code

function rabbit_hole_get_action_bundle($entity_type, $bundle) {
  return variable_get('rh_' . $entity_type . '_action_' . $bundle, RABBIT_HOLE_DISPLAY_CONTENT);
}