function views_handler_field_node_sexybookmarks::options_form in Share Buttons, Related Posts, Content Analytics - Shareaholic 7
Same name and namespace in other branches
- 7.2 includes/views_handler_field_node_sexybookmarks.inc \views_handler_field_node_sexybookmarks::options_form()
Default options form provides the label widget that all fields should have.
Overrides views_handler_field::options_form
File
- includes/
views_handler_field_node_sexybookmarks.inc, line 25 - Field handler to present SexyBookmarks.
Class
- views_handler_field_node_sexybookmarks
- @file Field handler to present SexyBookmarks.
Code
function options_form(&$form, &$form_state) {
$options = array();
ctools_include('export');
foreach (ctools_export_crud_load_all('sexybookmarks_profiles') as $profile) {
if (empty($profile->disabled)) {
$options[$profile->name] = $profile->name;
}
}
$form['profile'] = array(
'#type' => 'select',
'#title' => t('SexyBookmarks profile'),
'#empty_value' => '',
'#options' => $options,
'#default_value' => $this->options['profile'],
);
parent::options_form($form, $form_state);
}