If you meet the following error of the Legal module.
Notice: Undefined variable: options in views_handler_field_locale_language->render()…
The following patch on might help.
Index: legal/legal.module
===================================================================
--- legal/legal.module (revision 122)
+++ legal/legal.module (working copy)
@@ -582,7 +582,7 @@
function legal_login_submit($form, &$form_state) {
global $user;
$values = $form_state['values'];
- $user = user_load(array('uid' => $values['uid']));
+ $user = user_load($values['uid']);
$redirect = 'user/'. $user->uid;
Seems there are so many problems on the Legal module. We should consider to use the dev release instead of the stable release.
Done =)
Reference: Array passed to user_load() causes warning
