function ffc_rules_action_info in Field formatter conditions 7
Implements hook_rules_action_info().
File
- ./
ffc.rules.inc, line 48 - Rules integration for Field formatter conditions.
Code
function ffc_rules_action_info() {
$base_parameters = array(
'ffc_element' => array(
'type' => 'element',
'label' => t('Element'),
'optional' => TRUE,
),
'ffc_field' => array(
'type' => 'element',
'label' => t('Field'),
'optional' => TRUE,
),
);
return array(
'ffc_rules_hide_fields' => array(
'label' => t('Hide a field'),
'group' => t('Field formatter conditions'),
'parameter' => array() + $base_parameters,
),
'ffc_rules_change_image_style' => array(
'label' => t('Change image style'),
'group' => t('Field formatter conditions'),
'parameter' => $base_parameters + array(
'ffc_empty' => array(
'allow null' => TRUE,
'optional' => TRUE,
'type' => 'ffc_empty',
'label' => t('Image style'),
'ui class' => 'RulesDataUIText',
'options list' => 'ffc_rules_change_image_style_options',
),
),
),
);
}