Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added hook to pull data from github

  • Loading branch information...
commit aa6089bd41987a224abe3ea8d069b6291c7408bb 1 parent 7c2923b
@cash cash authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 start.php
View
12 start.php
@@ -6,9 +6,12 @@
register_elgg_event_handler('init', 'system', 'community_github_init');
function community_github_init() {
+ // add github username to profile
register_plugin_hook('profile:fields', 'profile', 'community_github_profile');
-
elgg_extend_view('profile/userdetails', 'github/hack', 1);
+
+ // do a regular pull of github information
+ register_plugin_hook('cron', 'hourly', 'community_github_pull');
}
/**
@@ -23,3 +26,10 @@ function community_github_profile($hook, $type, $fields) {
$fields['github_username'] = 'github';
return $fields;
}
+
+/**
+ * Pull the latest information from github
+ */
+function community_github_pull() {
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.