Skip to content

Instantly share code, notes, and snippets.

@mkorostoff
Created August 17, 2014 06:33
Show Gist options
  • Save mkorostoff/6ce20e38b22c66f6a422 to your computer and use it in GitHub Desktop.
Save mkorostoff/6ce20e38b22c66f6a422 to your computer and use it in GitHub Desktop.
<?php
//settings for use in the l() function to make links open in new tab
$open_in_new_tab = array(
'attributes' => array(
'target' => '_blank'
)
);
//Create a link to the user login page
return l('Log in', 'user/login', $open_in_new_tab);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment