module name: User Relationships.
module version is: 7.x-1.0-alpha5
whenever i try to add relationship type or edit it give me this error:
Strict warning: Only variables should be passed by reference in theme_user_relationship_implications_form_table() (line 103 of C:\wamp\www\drupal\modules\user_relationships\user_relationship_implications\user_relationship_implications.module).
Strict warning: Only variables should be passed by reference in theme_user_relationship_implications_form_table() (line 104 of C:\wamp\www\drupal\modules\user_relationships\user_relationship_implications\user_relationship_implications.module).
Strict warning: Only variables should be passed by reference in theme_user_relationship_implications_form_table() (line 105 of C:\wamp\www\drupal\modules\user_relationships\user_relationship_implications\user_relationship_implications.module).
the code in user_relationship_implications.module is as follows:
function theme_user_relationship_implications_form_table($variables) {
$form = $variables['form'];
$headers = array(t('Relationship Type'), t('Strict'), t('Reverse'));
$rows = array();
foreach ($form['opts'] as $rtid => $elements) {
if (!is_numeric($rtid)) {
continue;
}
$rows[$rtid] = array(
drupal_render(array_shift($elements)),
drupal_render(array_shift($elements)),
drupal_render(array_shift($elements)),
);
}
return theme('table', array('header' => $headers, 'rows' => $rows));
}
in the above code line 103-105 is:
drupal_render(array_shift($elements)),
drupal_render(array_shift($elements)),
drupal_render(array_shift($elements)),
Can you please help me solve the error and also bring to my knowledge why does this occur?