{"action":"created","comment":{"url":"https://api.github.com/repos/ding2/ding2/pulls/comments/220194241","pull_request_review_id":158543872,"id":220194241,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDE5NDI0MQ==","diff_hunk":"@@ -0,0 +1,2477 @@\n+<?php\n+/**\n+ * @file\n+ * Helps creating customizable lists of content that can be placed on a panel.\n+ */\n+\n+include_once 'ding_nodelist.features.inc';\n+\n+define('NL_WIDGET_LIST', 'simple');\n+define('NL_WIDGET_SINGLE', 'single');\n+define('NL_WIDGET_CAROUSEL', 'carousel');\n+define('NL_WIDGET_HOR_ACCORDION', 'horizontal_accordion');\n+define('NL_WIDGET_VER_ACCORDION', 'vertical_accordion');\n+define('NL_WIDGET_SLIDER', 'slider');\n+define('NL_WIDGET_TAXONOMY_LIKE', 'taxonomy');\n+\n+define('NL_TPL_ACTIVE', 0);\n+define('NL_TPL_HIDDEN', 1);\n+\n+define('NL_CACHE_LIFETIME', 1800);\n+define('NL_TITLE_SIZE', 25);\n+define('NL_BODY_SIZE', 100);\n+\n+/**\n+ * Implements hook_menu().\n+ */\n+function ding_nodelist_menu() {\n+  $items = array();\n+\n+  $items['admin/config/ding/ding_nodelist'] = array(\n+    'title' => 'Ding nodelist',\n+    'description' => 'View and customize lists of content.',\n+    'page callback' => 'drupal_get_form',\n+    'page arguments' => array('ding_nodelist_settings_form'),\n+    'access arguments' => array('configure nodelist'),\n+    'type' => MENU_NORMAL_ITEM,\n+    'file' => 'ding_nodelist.admin.inc',\n+  );\n+\n+  $items['admin/config/ding/ding_nodelist/settings'] = array(\n+    'title' => 'Settings',\n+    'description' => 'Configure general settings.',\n+    'tab_parent' => 'admin/config/ding/ding_nodelist',\n+    'type' => MENU_DEFAULT_LOCAL_TASK,\n+    'file' => 'ding_nodelist.admin.inc',\n+  );\n+\n+  $items['admin/config/ding/ding_nodelist/templates'] = array(\n+    'title' => 'Templates',\n+    'description' => 'Manage content templates.',\n+    'page callback' => 'drupal_get_form',\n+    'page arguments' => array('ding_nodelist_templates_form'),\n+    'access arguments' => array('configure nodelist'),\n+    'type' => MENU_LOCAL_TASK,\n+    'file' => 'ding_nodelist.admin.inc',\n+  );\n+\n+  $items['admin/config/ding/ding_nodelist/trim_content'] = array(\n+    'title' => 'Trim content',\n+    'description' => 'Define title and teaser trim parameters for each widget',\n+    'page callback' => 'drupal_get_form',\n+    'page arguments' => array('ding_nodelist_trim_content'),\n+    'access arguments' => array('configure nodelist'),\n+    'type' => MENU_LOCAL_TASK,\n+    'file' => 'ding_nodelist.admin.inc',\n+  );\n+\n+  $items['ding_nodelist/autocomplete/%'] = array(\n+    'page callback' => 'ding_nodelist_autocomplete',\n+    'page arguments' => array(2),\n+    'access arguments' => array('access content'),\n+    'type' => MENU_CALLBACK,\n+  );\n+\n+  return $items;\n+}\n+\n+/**\n+ * Implements hook_permission().\n+ */\n+function ding_nodelist_permission() {\n+  return array(\n+    'configure nodelist' => array(\n+      'title' => t('Configure nodelist'),\n+      'description' => t('Configure the behavior of nodelist'),\n+    ),\n+    'nodelist cache settings' => array(\n+      'title' => t('Nodelist cache'),\n+      'description' => t('Manage nodelist cache settings'),\n+    ),\n+  );\n+}\n+\n+/**\n+ * Implements hook_ctools_plugin_directory().\n+ */\n+function ding_nodelist_ctools_plugin_directory($module, $plugin) {\n+  // we'll be nice and limit scandir() calls.\n+  if ($module == 'ctools' && $plugin == 'content_types') {\n+    return 'plugins/content_types';\n+  }\n+}\n+\n+/**\n+ * Implements hook_ajax_render_alter().\n+ *\n+ * This method is a workaround to impossiblity\n+ * of telling Drupal the order of CSS files in order to\n+ * cascade styles properly. See the link.\n+ *\n+ * @link http://drupal.org/node/561858#comment-3171846\n+ *\n+ * @global boolean $_ding_nodelist_ipe_mode\n+ */\n+function ding_nodelist_ajax_render_alter(&$commands = array()) {\n+  global $_ding_nodelist_ipe_mode, $_ding_nodelist_ipe_redirect;\n+\n+  if ($_ding_nodelist_ipe_mode) {\n+    $path = drupal_get_path('module', 'ding_nodelist') . \"/css/ipe.css\";\n+    $styles = '<style type=\"text/css\" media=\"all\">@import url(\"' . $path . '\");</style>';\n+    $commands[] = ajax_command_append('head', $styles);\n+  }\n+\n+  if ($_ding_nodelist_ipe_redirect) {\n+    ctools_include('ajax');\n+    ctools_add_js('ajax-responder');\n+    $commands[] = ctools_ajax_command_redirect($_ding_nodelist_ipe_redirect);\n+  }\n+}\n+\n+/**\n+ * Implements hook_BASE_FORM_ID_alter().\n+ *\n+ * Add custom handler to IPE Save/Cancel buttons to force page reload.","path":"modules/ding_nodelist/ding_nodelist.module","position":null,"original_position":134,"commit_id":"3903afc81893e9aa867fee6cad18213195458a20","original_commit_id":"8807f85d20b6e596456918671537cb4eb8e283d1","user":{"login":"NicolaeGrigoriu","id":3027336,"node_id":"MDQ6VXNlcjMwMjczMzY=","avatar_url":"https://avatars2.githubusercontent.com/u/3027336?v=4","gravatar_id":"","url":"https://api.github.com/users/NicolaeGrigoriu","html_url":"https://github.com/NicolaeGrigoriu","followers_url":"https://api.github.com/users/NicolaeGrigoriu/followers","following_url":"https://api.github.com/users/NicolaeGrigoriu/following{/other_user}","gists_url":"https://api.github.com/users/NicolaeGrigoriu/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolaeGrigoriu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolaeGrigoriu/subscriptions","organizations_url":"https://api.github.com/users/NicolaeGrigoriu/orgs","repos_url":"https://api.github.com/users/NicolaeGrigoriu/repos","events_url":"https://api.github.com/users/NicolaeGrigoriu/events{/privacy}","received_events_url":"https://api.github.com/users/NicolaeGrigoriu/received_events","type":"User","site_admin":false},"body":"+1","created_at":"2018-09-25T13:35:11Z","updated_at":"2018-09-25T13:35:11Z","html_url":"https://github.com/ding2/ding2/pull/279#discussion_r220194241","pull_request_url":"https://api.github.com/repos/ding2/ding2/pulls/279","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ding2/ding2/pulls/comments/220194241"},"html":{"href":"https://github.com/ding2/ding2/pull/279#discussion_r220194241"},"pull_request":{"href":"https://api.github.com/repos/ding2/ding2/pulls/279"}},"in_reply_to_id":78713147},"pull_request":{"url":"https://api.github.com/repos/ding2/ding2/pulls/279","id":77122078,"node_id":"MDExOlB1bGxSZXF1ZXN0NzcxMjIwNzg=","html_url":"https://github.com/ding2/ding2/pull/279","diff_url":"https://github.com/ding2/ding2/pull/279.diff","patch_url":"https://github.com/ding2/ding2/pull/279.patch","issue_url":"https://api.github.com/repos/ding2/ding2/issues/279","number":279,"state":"open","locked":false,"title":"1597 by Inlead: Implement ding_nodelist to DDB CMS.","user":{"login":"guddo","id":287648,"node_id":"MDQ6VXNlcjI4NzY0OA==","avatar_url":"https://avatars2.githubusercontent.com/u/287648?v=4","gravatar_id":"","url":"https://api.github.com/users/guddo","html_url":"https://github.com/guddo","followers_url":"https://api.github.com/users/guddo/followers","following_url":"https://api.github.com/users/guddo/following{/other_user}","gists_url":"https://api.github.com/users/guddo/gists{/gist_id}","starred_url":"https://api.github.com/users/guddo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guddo/subscriptions","organizations_url":"https://api.github.com/users/guddo/orgs","repos_url":"https://api.github.com/users/guddo/repos","events_url":"https://api.github.com/users/guddo/events{/privacy}","received_events_url":"https://api.github.com/users/guddo/received_events","type":"User","site_admin":false},"body":"http://platform.dandigbib.org/issues/1597\n","created_at":"2016-07-12T13:43:11Z","updated_at":"2018-09-25T13:35:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfa919baa483715b0c87210d2e64704d828d3c7c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ding2/ding2/pulls/279/commits","review_comments_url":"https://api.github.com/repos/ding2/ding2/pulls/279/comments","review_comment_url":"https://api.github.com/repos/ding2/ding2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ding2/ding2/issues/279/comments","statuses_url":"https://api.github.com/repos/ding2/ding2/statuses/3903afc81893e9aa867fee6cad18213195458a20","head":{"label":"easySuite:feature/issue-1597","ref":"feature/issue-1597","sha":"3903afc81893e9aa867fee6cad18213195458a20","user":{"login":"easySuite","id":15833286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzMjg2","avatar_url":"https://avatars3.githubusercontent.com/u/15833286?v=4","gravatar_id":"","url":"https://api.github.com/users/easySuite","html_url":"https://github.com/easySuite","followers_url":"https://api.github.com/users/easySuite/followers","following_url":"https://api.github.com/users/easySuite/following{/other_user}","gists_url":"https://api.github.com/users/easySuite/gists{/gist_id}","starred_url":"https://api.github.com/users/easySuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easySuite/subscriptions","organizations_url":"https://api.github.com/users/easySuite/orgs","repos_url":"https://api.github.com/users/easySuite/repos","events_url":"https://api.github.com/users/easySuite/events{/privacy}","received_events_url":"https://api.github.com/users/easySuite/received_events","type":"Organization","site_admin":false},"repo":{"id":48030945,"node_id":"MDEwOlJlcG9zaXRvcnk0ODAzMDk0NQ==","name":"ding2","full_name":"easySuite/ding2","private":false,"owner":{"login":"easySuite","id":15833286,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1ODMzMjg2","avatar_url":"https://avatars3.githubusercontent.com/u/15833286?v=4","gravatar_id":"","url":"https://api.github.com/users/easySuite","html_url":"https://github.com/easySuite","followers_url":"https://api.github.com/users/easySuite/followers","following_url":"https://api.github.com/users/easySuite/following{/other_user}","gists_url":"https://api.github.com/users/easySuite/gists{/gist_id}","starred_url":"https://api.github.com/users/easySuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/easySuite/subscriptions","organizations_url":"https://api.github.com/users/easySuite/orgs","repos_url":"https://api.github.com/users/easySuite/repos","events_url":"https://api.github.com/users/easySuite/events{/privacy}","received_events_url":"https://api.github.com/users/easySuite/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/easySuite/ding2","description":"Ding install profile","fork":true,"url":"https://api.github.com/repos/easySuite/ding2","forks_url":"https://api.github.com/repos/easySuite/ding2/forks","keys_url":"https://api.github.com/repos/easySuite/ding2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/easySuite/ding2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/easySuite/ding2/teams","hooks_url":"https://api.github.com/repos/easySuite/ding2/hooks","issue_events_url":"https://api.github.com/repos/easySuite/ding2/issues/events{/number}","events_url":"https://api.github.com/repos/easySuite/ding2/events","assignees_url":"https://api.github.com/repos/easySuite/ding2/assignees{/user}","branches_url":"https://api.github.com/repos/easySuite/ding2/branches{/branch}","tags_url":"https://api.github.com/repos/easySuite/ding2/tags","blobs_url":"https://api.github.com/repos/easySuite/ding2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/easySuite/ding2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/easySuite/ding2/git/refs{/sha}","trees_url":"https://api.github.com/repos/easySuite/ding2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/easySuite/ding2/statuses/{sha}","languages_url":"https://api.github.com/repos/easySuite/ding2/languages","stargazers_url":"https://api.github.com/repos/easySuite/ding2/stargazers","contributors_url":"https://api.github.com/repos/easySuite/ding2/contributors","subscribers_url":"https://api.github.com/repos/easySuite/ding2/subscribers","subscription_url":"https://api.github.com/repos/easySuite/ding2/subscription","commits_url":"https://api.github.com/repos/easySuite/ding2/commits{/sha}","git_commits_url":"https://api.github.com/repos/easySuite/ding2/git/commits{/sha}","comments_url":"https://api.github.com/repos/easySuite/ding2/comments{/number}","issue_comment_url":"https://api.github.com/repos/easySuite/ding2/issues/comments{/number}","contents_url":"https://api.github.com/repos/easySuite/ding2/contents/{+path}","compare_url":"https://api.github.com/repos/easySuite/ding2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/easySuite/ding2/merges","archive_url":"https://api.github.com/repos/easySuite/ding2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/easySuite/ding2/downloads","issues_url":"https://api.github.com/repos/easySuite/ding2/issues{/number}","pulls_url":"https://api.github.com/repos/easySuite/ding2/pulls{/number}","milestones_url":"https://api.github.com/repos/easySuite/ding2/milestones{/number}","notifications_url":"https://api.github.com/repos/easySuite/ding2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/easySuite/ding2/labels{/name}","releases_url":"https://api.github.com/repos/easySuite/ding2/releases{/id}","deployments_url":"https://api.github.com/repos/easySuite/ding2/deployments","created_at":"2015-12-15T08:53:09Z","updated_at":"2018-09-18T12:21:22Z","pushed_at":"2018-09-25T12:20:35Z","git_url":"git://github.com/easySuite/ding2.git","ssh_url":"git@github.com:easySuite/ding2.git","clone_url":"https://github.com/easySuite/ding2.git","svn_url":"https://github.com/easySuite/ding2","homepage":"","size":120462,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4,"open_issues":12,"watchers":0,"default_branch":"development-4.4.x"}},"base":{"label":"ding2:master","ref":"master","sha":"987983d239f7c981c80cad8df31398cca4ba445e","user":{"login":"ding2","id":564698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NDY5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/564698?v=4","gravatar_id":"","url":"https://api.github.com/users/ding2","html_url":"https://github.com/ding2","followers_url":"https://api.github.com/users/ding2/followers","following_url":"https://api.github.com/users/ding2/following{/other_user}","gists_url":"https://api.github.com/users/ding2/gists{/gist_id}","starred_url":"https://api.github.com/users/ding2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ding2/subscriptions","organizations_url":"https://api.github.com/users/ding2/orgs","repos_url":"https://api.github.com/users/ding2/repos","events_url":"https://api.github.com/users/ding2/events{/privacy}","received_events_url":"https://api.github.com/users/ding2/received_events","type":"Organization","site_admin":false},"repo":{"id":1266749,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY2NzQ5","name":"ding2","full_name":"ding2/ding2","private":false,"owner":{"login":"ding2","id":564698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU2NDY5OA==","avatar_url":"https://avatars0.githubusercontent.com/u/564698?v=4","gravatar_id":"","url":"https://api.github.com/users/ding2","html_url":"https://github.com/ding2","followers_url":"https://api.github.com/users/ding2/followers","following_url":"https://api.github.com/users/ding2/following{/other_user}","gists_url":"https://api.github.com/users/ding2/gists{/gist_id}","starred_url":"https://api.github.com/users/ding2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ding2/subscriptions","organizations_url":"https://api.github.com/users/ding2/orgs","repos_url":"https://api.github.com/users/ding2/repos","events_url":"https://api.github.com/users/ding2/events{/privacy}","received_events_url":"https://api.github.com/users/ding2/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ding2/ding2","description":"Ding install profile","fork":false,"url":"https://api.github.com/repos/ding2/ding2","forks_url":"https://api.github.com/repos/ding2/ding2/forks","keys_url":"https://api.github.com/repos/ding2/ding2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ding2/ding2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ding2/ding2/teams","hooks_url":"https://api.github.com/repos/ding2/ding2/hooks","issue_events_url":"https://api.github.com/repos/ding2/ding2/issues/events{/number}","events_url":"https://api.github.com/repos/ding2/ding2/events","assignees_url":"https://api.github.com/repos/ding2/ding2/assignees{/user}","branches_url":"https://api.github.com/repos/ding2/ding2/branches{/branch}","tags_url":"https://api.github.com/repos/ding2/ding2/tags","blobs_url":"https://api.github.com/repos/ding2/ding2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ding2/ding2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ding2/ding2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ding2/ding2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ding2/ding2/statuses/{sha}","languages_url":"https://api.github.com/repos/ding2/ding2/languages","stargazers_url":"https://api.github.com/repos/ding2/ding2/stargazers","contributors_url":"https://api.github.com/repos/ding2/ding2/contributors","subscribers_url":"https://api.github.com/repos/ding2/ding2/subscribers","subscription_url":"https://api.github.com/repos/ding2/ding2/subscription","commits_url":"https://api.github.com/repos/ding2/ding2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ding2/ding2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ding2/ding2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ding2/ding2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ding2/ding2/contents/{+path}","compare_url":"https://api.github.com/repos/ding2/ding2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ding2/ding2/merges","archive_url":"https://api.github.com/repos/ding2/ding2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ding2/ding2/downloads","issues_url":"https://api.github.com/repos/ding2/ding2/issues{/number}","pulls_url":"https://api.github.com/repos/ding2/ding2/pulls{/number}","milestones_url":"https://api.github.com/repos/ding2/ding2/milestones{/number}","notifications_url":"https://api.github.com/repos/ding2/ding2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ding2/ding2/labels{/name}","releases_url":"https://api.github.com/repos/ding2/ding2/releases{/id}","deployments_url":"https://api.github.com/repos/ding2/ding2/deployments","created_at":"2011-01-18T10:54:00Z","updated_at":"2018-09-21T06:45:19Z","pushed_at":"2018-09-25T12:20:39Z","git_url":"git://github.com/ding2/ding2.git","ssh_url":"git@github.com:ding2/ding2.git","clone_url":"https://github.com/ding2/ding2.git","svn_url":"https://github.com/ding2/ding2","homepage":"","size":95848,"stargazers_count":13,"watchers_count":13,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":48,"mirror_url":null,"archived":false,"open_issues_count":168,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":48,"open_issues":168,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ding2/ding2/pulls/279"},"html":{"href":"https://github.com/ding2/ding2/pull/279"},"issue":{"href":"https://api.github.com/repos/ding2/ding2/issues/279"},"comments":{"href":"https://api.github.com/repos/ding2/ding2/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/ding2/ding2/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/ding2/ding2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ding2/ding2/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/ding2/ding2/statuses/3903afc81893e9aa867fee6cad18213195458a20"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"NicolaeGrigoriu"}}