You are here

function ffc_condition_form_hide_not_empty in Field formatter conditions 7

Field formatter conditional form.

Present the hide not empty form.

File

./ffc.ffc_conditions_info.inc, line 274
Hook implementations and API functions for Field formatter settings.

Code

function ffc_condition_form_hide_not_empty($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'] : '',
  );
  return $form;
}