replaces 'links' and 'link_to_url' with 'link_behavior' in the PHP