We use module named bxslider and we extended it a bit.

We added a field to the formatter settings using the already existing hooks:
bxslider_field_formatter_info
bxslider_field_formatter_settings_form

I added a checkbox. The checkbox is perfectly visible and i can toggle it but when i save the field settings.
The value i saved in the way i left it when i saved the settings.
But when i open the field settings again the checkbox is unchecked.
Even though i checked it when i last saved it.

Maybe i forgot something in de code for loading it.

here the code in the hooks:

bxslider_field_formatter_settings_form:

<?php
 $element['general']['link_to_node'] = array(
  	'#title' => t('Create link'),
  	'#type' => 'checkbox',
  	'#default_value' => false
  );
?>

bxslider_field_formatter_info:

<?php
 'link_to_node' => FALSE,
?>

API page: https://api.drupal.org/api/drupal/modules%21field_ui%21field_ui.api.php/...

Enter a descriptive title (above) relating to function hook_field_formatter_settings_form, then describe the problem you have found:

Comments

jhodgdon’s picture

Category: Bug report » Support request
Status: Active » Fixed

It looks like you need some programming support.

I'm sorry, but although you can create issues in Drupal Core and mark the category as "support request", we don't really handle support requests in the Drupal Core issue queue as a regular practice (that option is mostly there for filing support issues for contributed modules and themes).

There are several support options listed if you click on "Support" at the top of Drupal.org, which will take you to:
http://drupal.org/support

There you can find out about the Drupal IRC channels, and the Forums, which are our two main support mechanisms in the Drupal community. You might also try http://drupal.stackexchange.com/

Good luck with your issue!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

quietone’s picture