Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291123

hook_field_settings_form not fire

$
0
0

Hi,
I'm trying to use hook_field_settings_form to add just one simple settings to a field wich has been creadted with administration site (structure/manage field). I try just this :

<?php
mymodule_field_settings_form
($field, $instance, $has_data) {
 
dsm($field);
}
?>

but nothing happen even if I put die or dsm('ll'). What surprises me is that there are no issue on this, I see some other module make form_alter and own variable_set or db_insert but I would like to use settings form field if I can.
I search in field_ui.admin.inc and
in function field_ui_field_settings_form($form, &$form_state, $instance) wich is call, thre are:
<?php
//line 1598
 
$additions = module_invoke($field['module'], 'field_settings_form', $field, $instance, $has_data);
?>

But
<?php
$field
['module']
?>
is equal to string "list" is it normal?

Viewing all articles
Browse latest Browse all 291123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>