Commit 5f954bce authored by hass's avatar hass
Browse files

#1586356: Missing 'weight' support from hook_field_widget_info() makes

it impossible to sanely order widgets
parent 07a4eaa4
......@@ -285,6 +285,19 @@ function googleanalytics_page_alter(&$page) {
}
}
/**
* Implements hook_field_extra_fields().
*/
function googleanalytics_field_extra_fields() {
$extra['user']['user']['form']['googleanalytics'] = array(
'label' => t('Google Analytics configuration'),
'description' => t('Google Analytics module form element.'),
'weight' => 3,
);
return $extra;
}
/**
* Implements hook_form_FORM_ID_alter().
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment