function views_customfield_handler_field_phpcode::options_form in Views Custom Field 6
Provide link to node option
File
- includes/
views_customfield_handler_field_phpcode.inc, line 35 - Contains the 'customfield' phpcode field handler.
Class
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['value'] = array(
'#type' => 'textarea',
'#title' => t('Value'),
'#default_value' => $this->options['value'],
'#rows' => 5,
'#description' => t('The text that should be displayed.') . ' ' . t('Include <?php ?> delimiters when using PHP code.') . ' ' . t('Available variables:') . '<br/>' . t('$data: contains the retrieved record from the database (e.g. $data->nid).') . '<br/>' . t('$static: can be used to store reusable data per row.'),
);
$form['sortable'] = array(
'#type' => 'radios',
'#title' => t('Sortable'),
'#description' => t('WARNING: Sorting will cause ALL results to be loaded in memory. May cause heavy load on your server, so use wisely.'),
'#default_value' => $this->options['sortable'],
'#options' => array(
VIEWS_CUSTOMFIELD_SORTABLE_NO => t('No'),
VIEWS_CUSTOMFIELD_SORTABLE_NUMERIC => t('Numeric'),
VIEWS_CUSTOMFIELD_SORTABLE_ALPHA => t('Alphanumeric'),
VIEWS_CUSTOMFIELD_SORTABLE_ALPHA_NOCASE => t('Alphanumeric (case-insensitive)'),
VIEWS_CUSTOMFIELD_SORTABLE_NAT => t('Natural'),
VIEWS_CUSTOMFIELD_SORTABLE_NAT_NOCASE => t('Natural (case-insensitive)'),
),
);
}