main_slider hook
This commit is contained in:
parent
02eb9aa521
commit
b3417e4854
@ -369,7 +369,7 @@ function network_content(&$a, $update = 0, $load = false) {
|
|||||||
|
|
||||||
if(feature_enabled(local_user(),'affinity')) {
|
if(feature_enabled(local_user(),'affinity')) {
|
||||||
$tpl = get_markup_template('main_slider.tpl');
|
$tpl = get_markup_template('main_slider.tpl');
|
||||||
$o .= replace_macros($tpl,array(
|
$x = replace_macros($tpl,array(
|
||||||
'$val' => intval($cmin) . ';' . intval($cmax),
|
'$val' => intval($cmin) . ';' . intval($cmax),
|
||||||
'$refresh' => t('Refresh'),
|
'$refresh' => t('Refresh'),
|
||||||
'$me' => t('Me'),
|
'$me' => t('Me'),
|
||||||
@ -380,6 +380,9 @@ function network_content(&$a, $update = 0, $load = false) {
|
|||||||
'$acquaintances' => t('Acquaintances'),
|
'$acquaintances' => t('Acquaintances'),
|
||||||
'$world' => t('Everybody')
|
'$world' => t('Everybody')
|
||||||
));
|
));
|
||||||
|
$arr = array('html' => $x);
|
||||||
|
call_hooks('main_slider',$arr);
|
||||||
|
$o .= $arr['html'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$arr = array('tabs' => $tabs);
|
$arr = array('tabs' => $tabs);
|
||||||
|
Reference in New Issue
Block a user