{"action":"opened","number":135,"pull_request":{"url":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/135","id":74188095,"html_url":"https://github.com/compucorp/civihr-employee-portal/pull/135","diff_url":"https://github.com/compucorp/civihr-employee-portal/pull/135.diff","patch_url":"https://github.com/compucorp/civihr-employee-portal/pull/135.patch","issue_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/135","number":135,"state":"open","locked":false,"title":"PCHR:920 Custom module to provide an api to load civicrm resources in Drupal","user":{"login":"vidhatanand","id":215929,"avatar_url":"https://avatars.githubusercontent.com/u/215929?v=3","gravatar_id":"","url":"https://api.github.com/users/vidhatanand","html_url":"https://github.com/vidhatanand","followers_url":"https://api.github.com/users/vidhatanand/followers","following_url":"https://api.github.com/users/vidhatanand/following{/other_user}","gists_url":"https://api.github.com/users/vidhatanand/gists{/gist_id}","starred_url":"https://api.github.com/users/vidhatanand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidhatanand/subscriptions","organizations_url":"https://api.github.com/users/vidhatanand/orgs","repos_url":"https://api.github.com/users/vidhatanand/repos","events_url":"https://api.github.com/users/vidhatanand/events{/privacy}","received_events_url":"https://api.github.com/users/vidhatanand/received_events","type":"User","site_admin":false},"body":"The module invokes a custom drupal cache bin to store path information of extensions, so as not to call civicrm_initialize() on every api call. \r\nTo load a js/css from  \"Job Contract (CiviHR)\", call the api function as in following examples. \r\n\r\n- civicrm_resources_add_resources('Job Contract (CiviHR)', array('gulpfile.js', 'hrjc.css', 'contact.js'));\r\nThis will load all css/js files listed in array located anywhere in extension \"Job Contract (CiviHR)\".\r\n\r\n- civicrm_resources_add_resources('Job Contract (CiviHR)', array('gulpfile.js',  'contact.js', '*.css'));\r\nThis will load all css files and 2 js files listed in array located anywhere in extension \"Job Contract (CiviHR)\".\r\n\r\n- civicrm_resources_add_resources('Job Contract (CiviHR)');\r\nThis will load all css files and all js files located anywhere in extension \"Job Contract (CiviHR)\".","created_at":"2016-06-17T04:40:18Z","updated_at":"2016-06-17T04:40:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/135/commits","review_comments_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/135/comments","review_comment_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/135/comments","statuses_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/statuses/378b61cb1951a0461c8c4558b08158fccb76e270","head":{"label":"compucorp:PCHR-920-custom-module-to-load-civicrm-resource-in-drupal","ref":"PCHR-920-custom-module-to-load-civicrm-resource-in-drupal","sha":"378b61cb1951a0461c8c4558b08158fccb76e270","user":{"login":"compucorp","id":2040164,"avatar_url":"https://avatars.githubusercontent.com/u/2040164?v=3","gravatar_id":"","url":"https://api.github.com/users/compucorp","html_url":"https://github.com/compucorp","followers_url":"https://api.github.com/users/compucorp/followers","following_url":"https://api.github.com/users/compucorp/following{/other_user}","gists_url":"https://api.github.com/users/compucorp/gists{/gist_id}","starred_url":"https://api.github.com/users/compucorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compucorp/subscriptions","organizations_url":"https://api.github.com/users/compucorp/orgs","repos_url":"https://api.github.com/users/compucorp/repos","events_url":"https://api.github.com/users/compucorp/events{/privacy}","received_events_url":"https://api.github.com/users/compucorp/received_events","type":"Organization","site_admin":false},"repo":{"id":25817866,"name":"civihr-employee-portal","full_name":"compucorp/civihr-employee-portal","owner":{"login":"compucorp","id":2040164,"avatar_url":"https://avatars.githubusercontent.com/u/2040164?v=3","gravatar_id":"","url":"https://api.github.com/users/compucorp","html_url":"https://github.com/compucorp","followers_url":"https://api.github.com/users/compucorp/followers","following_url":"https://api.github.com/users/compucorp/following{/other_user}","gists_url":"https://api.github.com/users/compucorp/gists{/gist_id}","starred_url":"https://api.github.com/users/compucorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compucorp/subscriptions","organizations_url":"https://api.github.com/users/compucorp/orgs","repos_url":"https://api.github.com/users/compucorp/repos","events_url":"https://api.github.com/users/compucorp/events{/privacy}","received_events_url":"https://api.github.com/users/compucorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/compucorp/civihr-employee-portal","description":"CiviHR employee portal custom Drupal modules","fork":false,"url":"https://api.github.com/repos/compucorp/civihr-employee-portal","forks_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/forks","keys_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/teams","hooks_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/hooks","issue_events_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/events{/number}","events_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/events","assignees_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/assignees{/user}","branches_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/branches{/branch}","tags_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/tags","blobs_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/languages","stargazers_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/stargazers","contributors_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/contributors","subscribers_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/subscribers","subscription_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/subscription","commits_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/contents/{+path}","compare_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/merges","archive_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/downloads","issues_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues{/number}","pulls_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/labels{/name}","releases_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/releases{/id}","deployments_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/deployments","created_at":"2014-10-27T12:26:29Z","updated_at":"2016-01-11T11:00:35Z","pushed_at":"2016-06-17T04:40:18Z","git_url":"git://github.com/compucorp/civihr-employee-portal.git","ssh_url":"git@github.com:compucorp/civihr-employee-portal.git","clone_url":"https://github.com/compucorp/civihr-employee-portal.git","svn_url":"https://github.com/compucorp/civihr-employee-portal","homepage":null,"size":2629,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"develop"}},"base":{"label":"compucorp:PCHR-863-migrate-to-4.7","ref":"PCHR-863-migrate-to-4.7","sha":"242ebbcc32d2521d71747aa0c39bf74c8425de02","user":{"login":"compucorp","id":2040164,"avatar_url":"https://avatars.githubusercontent.com/u/2040164?v=3","gravatar_id":"","url":"https://api.github.com/users/compucorp","html_url":"https://github.com/compucorp","followers_url":"https://api.github.com/users/compucorp/followers","following_url":"https://api.github.com/users/compucorp/following{/other_user}","gists_url":"https://api.github.com/users/compucorp/gists{/gist_id}","starred_url":"https://api.github.com/users/compucorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compucorp/subscriptions","organizations_url":"https://api.github.com/users/compucorp/orgs","repos_url":"https://api.github.com/users/compucorp/repos","events_url":"https://api.github.com/users/compucorp/events{/privacy}","received_events_url":"https://api.github.com/users/compucorp/received_events","type":"Organization","site_admin":false},"repo":{"id":25817866,"name":"civihr-employee-portal","full_name":"compucorp/civihr-employee-portal","owner":{"login":"compucorp","id":2040164,"avatar_url":"https://avatars.githubusercontent.com/u/2040164?v=3","gravatar_id":"","url":"https://api.github.com/users/compucorp","html_url":"https://github.com/compucorp","followers_url":"https://api.github.com/users/compucorp/followers","following_url":"https://api.github.com/users/compucorp/following{/other_user}","gists_url":"https://api.github.com/users/compucorp/gists{/gist_id}","starred_url":"https://api.github.com/users/compucorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/compucorp/subscriptions","organizations_url":"https://api.github.com/users/compucorp/orgs","repos_url":"https://api.github.com/users/compucorp/repos","events_url":"https://api.github.com/users/compucorp/events{/privacy}","received_events_url":"https://api.github.com/users/compucorp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/compucorp/civihr-employee-portal","description":"CiviHR employee portal custom Drupal modules","fork":false,"url":"https://api.github.com/repos/compucorp/civihr-employee-portal","forks_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/forks","keys_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/teams","hooks_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/hooks","issue_events_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/events{/number}","events_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/events","assignees_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/assignees{/user}","branches_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/branches{/branch}","tags_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/tags","blobs_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/languages","stargazers_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/stargazers","contributors_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/contributors","subscribers_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/subscribers","subscription_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/subscription","commits_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/contents/{+path}","compare_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/merges","archive_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/downloads","issues_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues{/number}","pulls_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/labels{/name}","releases_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/releases{/id}","deployments_url":"https://api.github.com/repos/compucorp/civihr-employee-portal/deployments","created_at":"2014-10-27T12:26:29Z","updated_at":"2016-01-11T11:00:35Z","pushed_at":"2016-06-17T04:40:18Z","git_url":"git://github.com/compucorp/civihr-employee-portal.git","ssh_url":"git@github.com:compucorp/civihr-employee-portal.git","clone_url":"https://github.com/compucorp/civihr-employee-portal.git","svn_url":"https://github.com/compucorp/civihr-employee-portal","homepage":null,"size":2629,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/135"},"html":{"href":"https://github.com/compucorp/civihr-employee-portal/pull/135"},"issue":{"href":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/135"},"comments":{"href":"https://api.github.com/repos/compucorp/civihr-employee-portal/issues/135/comments"},"review_comments":{"href":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/135/comments"},"review_comment":{"href":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/compucorp/civihr-employee-portal/pulls/135/commits"},"statuses":{"href":"https://api.github.com/repos/compucorp/civihr-employee-portal/statuses/378b61cb1951a0461c8c4558b08158fccb76e270"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":26,"additions":310,"deletions":88,"changed_files":11}}
{"actor":{"display_login":"vidhatanand"}}