function npop_handler_field_npop_link::options_form in Node pop-up 7
Provide node in colorbox option.
Overrides views_handler_field_node_link::options_form
File
- views/
npop_handler_field_npop_link.inc, line 30 - Views handlers for Node popup(npop) module.
Class
- npop_handler_field_npop_link
- 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,
);
}