function ffc_ffc_conditions_info in Field formatter conditions 7
Implements hook_ffc_conditions_info().
File
- ./
ffc.ffc_conditions_info.inc, line 225 - Hook implementations and API functions for Field formatter settings.
Code
function ffc_ffc_conditions_info() {
$conditions = array(
'hide_not_empty' => array(
'title' => t('Hide when target field is not empty'),
),
'hide_if_empty' => array(
'title' => t('Hide if target field is empty'),
),
'hide_no_string' => array(
'title' => t('Hide when target field does not contain a string'),
),
'hide_if_string' => array(
'title' => t('Hide when target field contains a string'),
),
'hide_on_role' => array(
'title' => t('Hide when current user has role'),
),
'hide_on_pages' => array(
'title' => t('Hide on specific pages'),
),
'hide_link_when_title_is_empty' => array(
'title' => t('Hide link when title is empty'),
'field types' => array(
'link_field',
),
'no form' => TRUE,
),
'hide_date_time' => array(
'title' => t('Hide date/time'),
'field types' => array(
'datetime',
'date',
'datestamp',
),
),
);
// Rules support.
if (module_exists('rules')) {
$conditions['rules_event'] = array(
'title' => t('Use an event from rules'),
'form callback' => 'ffc_condition_rules_form',
'execute callback' => 'ffc_condition_rules_execute',
);
}
return $conditions;
}