function _edi_l in Classified Ads 5.2
front end to l() due to differences between D5 & D6 causes pain Take D6 params but down convert to D5 if need be
11 calls to _edi_l()
- ed_classified_admin_overview in ./
ed_classified.module - Present admin options.
- ed_classified_page in ./
ed_classified.module - Display a page of classified ads, as appropriate. Lifted from image_gallery module. Shameless.
- ed_classified_view in ./
ed_classified.module - Implementation of hook_view().
- theme_ed_classified_ads_block in ./
ed_classified_themefuncs.inc - Theme an ads block
- theme_ed_classified_category_list_ad_row in ./
ed_classified_themefuncs.inc
File
- ./
ed_classified_utils.inc, line 453 - Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…
Code
function _edi_l($text, $path, $options = array()) {
switch (reset(explode('.', DRUPAL_VERSION))) {
case 5:
if (empty($options)) {
return l($text, $path);
}
else {
$d5options = array();
$d5options['attributes'] = isset($options['attributes']) ? $options['attributes'] : array();
$d5options['query'] = isset($options['query']) ? $options['query'] : NULL;
$d5options['fragment'] = isset($options['fragment']) ? $options['fragment'] : NULL;
$d5options['absolute'] = isset($options['absolute']) ? $options['absolute'] : FALSE;
$d5options['html'] = isset($options['html']) ? $options['html'] : FALSE;
return l($text, $path, $d5options['attributes'], $d5options['query'], $d5options['fragment'], $d5options['absolute'], $d5options['html']);
}
break;
case 6:
case 7:
return l($text, $path, $options);
break;
}
}