function ffc_condition_form_hide_no_string in Field formatter conditions 7
Field formatter conditional form.
Present the hide if string not found form.
File
- ./
ffc.ffc_conditions_info.inc, line 310 - Hook implementations and API functions for Field formatter settings.
Code
function ffc_condition_form_hide_no_string($context, $configuration) {
$form = array();
$form['target'] = array(
'#type' => 'select',
'#title' => t('Select target field'),
'#options' => ffc_get_condition_fields($context),
'#default_value' => isset($configuration['target']) ? $configuration['target'] : '',
);
$form['string'] = array(
'#type' => 'textfield',
'#title' => t('Enter target string'),
'#default_value' => isset($configuration['string']) ? $configuration['string'] : '',
);
return $form;
}