function nodewords_url in Nodewords: D6 Meta Tags 6.3
Same name and namespace in other branches
- 6 nodewords.module \nodewords_url()
- 6.2 nodewords.module \nodewords_url()
Return the absolute URL of a path.
Return the absolute URL of a path built using the base URL saved in the Drupal variable nodewords_base_url.
Parameters
$path: The path for which the absolute must be built.
$options: An array of options as used by url().
1 call to nodewords_url()
- nodewords_basic_canonical_prepare in nodewords_basic/
includes/ nodewords_basic.nodewords.tags.inc - Set the meta tag content.
File
- ./
nodewords.module, line 895 - Implement an version that other modules can use to add meta tags.
Code
function nodewords_url($path, array $options = array()) {
$options += array(
'alias' => TRUE,
'absolute' => TRUE,
'base_url' => rtrim(variable_get('nodewords_base_url', ''), '/'),
'fragment' => '',
'query' => '',
'prefix' => '',
);
if (empty($options['base_url'])) {
$options['base_url'] = NULL;
}
return url($path, $options);
}