function editablefields_views_option_form in Editable Fields 6.3
1 call to editablefields_views_option_form()
- editablefields_handler_field_node::options_form in includes/
views/ editablefields_handler_field_node.inc - Provide link to node option
File
- ./
editablefields.module, line 733 - Editable fields module.
Code
function editablefields_views_option_form(&$form, &$form_state, $editable) {
$form['editablefields_allowed'] = array(
'#title' => t('Make field editable'),
'#description' => t('This will override any other link you have set.'),
'#type' => 'checkbox',
'#default_value' => '',
);
$responders = editablefields_get_responders();
$options = array();
foreach ($responders as $responder) {
$options[$responder['name']] = $responder['title'];
}
$form['editablefields_responder'] = array(
'#title' => t('Editable Behavior'),
'#description' => t('How would you like to edit this field?'),
'#type' => 'select',
'#options' => $options,
'#dependency' => array(
'edit-options-editablefields-allowed' => array(
'1',
),
),
'#process' => array(
'views_process_dependency',
),
);
$form['editablefields_editable'] = array(
'#type' => 'hidden',
'#value' => $editable,
);
}