Commit 29e8778e authored by KarenS's avatar KarenS
Browse files

#780566 by stella, add drupal_alter() for option lists created by userreference and nodereference.

parent 14f1667e
......@@ -678,6 +678,9 @@ function node_reference_options_list($field) {
foreach ($references as $key => $value) {
$options[$key] = $value['title'];
}
drupal_alter('options_list', $options, $field);
return $options;
}
......
......@@ -521,6 +521,9 @@ function user_reference_options_list($field) {
foreach ($references as $key => $value) {
$options[$key] = $value['title'];
}
drupal_alter('options_list', $options, $field);
return $options;
}
......
Markdown is supported
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