function party_rules_action_info in Party 8.2
Same name and namespace in other branches
- 7 party.rules.inc \party_rules_action_info()
Implements hook_rules_action_info()
File
- ./
party.rules.inc, line 64 - Rules integration for party.
Code
function party_rules_action_info() {
$items['party_attach_entity'] = array(
'label' => t('Attach Entity to Party'),
'group' => t('Party'),
'parameter' => array(
'party' => array(
'type' => 'party',
'label' => t('Party'),
'save' => TRUE,
),
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t('The Entity to attach to the Party'),
'restriction' => 'selector',
'wrapped' => TRUE,
),
'data_set_name' => array(
'type' => 'text',
'label' => t('Data Set Name'),
'description' => t('The Data Set definition for this entity'),
),
),
//'access callback' => 'rules_user_integration_access'
'base' => 'party_rules_attach_entity',
);
$items['party_detach_entity'] = array(
'label' => t('Detach an Entity from a Party'),
'group' => t('Party'),
'parameter' => array(
'party' => array(
'type' => 'party',
'label' => t('Party'),
'save' => TRUE,
),
'entity' => array(
'type' => 'entity',
'label' => t('Entity'),
'description' => t('The Entity to detach from the Party'),
'restriction' => 'selector',
'wrapped' => TRUE,
),
'data_set_name' => array(
'type' => 'text',
'label' => t('Data Set Name'),
'description' => t('The Data Set definition for this entity'),
),
),
//'access callback' => 'rules_user_integration_access'
'base' => 'party_rules_attach_entity',
);
return $items;
}