function npop_handler_field_npop::options_form in Node pop-up 7
Provide node in colorbox option.
Overrides views_handler_field_node::options_form
File
- views/
npop_handler_field_npop.inc, line 30 - Views handlers for Node popup module.
Class
- npop_handler_field_npop
- A handler to provide a field that is completely custom by the administrator.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$form['link_to_node']['#weight'] = -90;
$form['node_to_npop'] = array(
'#type' => 'checkbox',
'#title' => t('Display the content inside of a popup window (Node popup).'),
'#description' => t("Enable if you want show node in popup window."),
'#default_value' => !empty($this->options['node_to_npop']),
'#dependency' => array(
'edit-options-link-to-node' => array(
1,
),
),
'#weight' => -80,
);
$form['alter']['path']['#states']['disabled'] = array(
':input[name="options[node_to_npop]"]' => array(
'checked' => TRUE,
),
);
}