- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
function syn_s_lms_support_get_bl_specific_urls($bl_node) {
$bl_specific_urls=array();
$url = field_extract_value('node', $bl_node, 'field_business_website', 'url');
if (isset($url[0]) && strlen($url[0]) ) {
$bl_specific_urls[] = $url[0];
}
$url = field_extract_value('node', $bl_node, 'field_business_yelp', 'url');
if (isset($url[0]) && strlen($url[0]) ) {
$bl_specific_urls[] = $url[0];
}
$url = field_extract_value('node', $bl_node, 'field_business_gplus', 'url');
if (isset($url[0]) && strlen($url[0]) ) {
$bl_specific_urls[] = $url[0];
}
$url = field_extract_value('node', $bl_node, 'field_business_facebook', 'url');
if (isset($url[0]) && strlen($url[0]) ) {
$bl_specific_urls[] = $url[0];
}
$twitname = field_extract_value('node', $bl_node, 'field_business_twitter');
if ($twitname) {
$twit_name_clean = str_replace("@", '', $twitname);
$bl_specific_urls[] = 'https://twitter.com/' . $twit_name_clean;
}
return $bl_specific_urls;
}