You are here

function ffc_condition_form_hide_on_role in Field formatter conditions 7

Field formatter conditional form.

Present the hide on role form.

File

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

Code

function ffc_condition_form_hide_on_role($context, $configuration) {
  $form = array();
  $form['roles'] = array(
    '#type' => 'select',
    '#multiple' => TRUE,
    '#title' => t('Select roles'),
    '#options' => user_roles(),
    '#default_value' => isset($configuration['roles']) ? $configuration['roles'] : '',
  );
  return $form;
}