function ffc_condition_form_hide_on_pages in Field formatter conditions 7
Field formatter conditional form.
Present the hide on pages form.
File
- ./
ffc.ffc_conditions_info.inc, line 375 - Hook implementations and API functions for Field formatter settings.
Code
function ffc_condition_form_hide_on_pages($context, $configuration) {
$form = array();
$form['visibility'] = array(
'#type' => 'radios',
'#options' => array(
0 => t('All pages except those listed'),
1 => t('Only the listed pages'),
),
'#default_value' => isset($configuration['visibility']) ? $configuration['visibility'] : 0,
);
$form['pages'] = array(
'#type' => 'textarea',
'#title' => t('Enter pages'),
'#cols' => 10,
'#default_value' => isset($configuration['pages']) ? $configuration['pages'] : '',
'#description' => t("Specify pages by using their paths. Enter one path per line. * is used as wildcard."),
);
return $form;
}