diff --git a/include/items.php b/include/items.php
index c00ec93ae..22d47d44f 100644
--- a/include/items.php
+++ b/include/items.php
@@ -499,7 +499,9 @@ function get_atom_elements($feed,$item) {
$res['target'] .= '' . "\n";
}
-// call_hooks('parse_atom', array('feed' => $feed, 'item' => $item, 'result' => $res));
+ $arr = array('feed' => $feed, 'item' => $item, 'result' => $res);
+
+ call_hooks('parse_atom', $arr);
return $res;
}
diff --git a/mod/directory.php b/mod/directory.php
index 49aac657c..062aae516 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -83,7 +83,7 @@ function directory_content(&$a) {
if(strlen($rr['gender']))
$details .= '
Gender: ' . $rr['gender'];
- $o .= replace_macros($tpl,array(
+ $entry = replace_macros($tpl,array(
'$id' => $rr['id'],
'$profile-link' => $profile_link,
'$photo' => $rr[$photo],
@@ -94,7 +94,14 @@ function directory_content(&$a) {
));
+ $arr = array('contact' => $rr, 'entry' => $entry);
+
+ call_hooks('directory_item', $arr);
+
+ $o .= $entry;
+
}
+
$o .= "