function rules_entity_action_type_options

Options list callback for data actions.

Parameters

$element: The element to return options for.

$param: The name of the parameter to return options for.

Related topics

2 calls to rules_entity_action_type_options()
rules_entity_action_access in modules/entity.rules.inc
Entity actions access callback.
rules_entity_action_info in modules/entity.rules.inc
Implements hook_rules_action_info() on behalf of the entity module.
2 string references to 'rules_entity_action_type_options'
rules_entity_action_info in modules/entity.rules.inc
Implements hook_rules_action_info() on behalf of the entity module.
rules_entity_condition_info in modules/entity.rules.inc
Implements hook_rules_condition_info() on behalf of the entity module.

File

modules/entity.rules.inc, line 263

Code

function rules_entity_action_type_options($element, $name = NULL) {
    // We allow calling this function with just the element name too. That way
    // we ease manual re-use.
    $name = is_object($element) ? $element->getElementName() : $element;
    return $name == 'entity_create' ? rules_entity_type_options('create') : rules_entity_type_options();
}