Drupal: Sorting by last name given the Title in a link field

preg_match('~([^\s]+)(?:,.*)?$~',$node->field_faculty_link[0]['title'], $match);
$node_field[0]['value'] = $match[0];

Leave a Reply

*
Powered by WordPress | Designed by Elegant Themes