https://github.com/iphands/drupalcommenter
An API that lets you comment on Drupal nodes via ajax from a non Drupal page.
https://github.com/iphands/drupalcommenter
Last synced: 4 months ago
JSON representation
An API that lets you comment on Drupal nodes via ajax from a non Drupal page.
- Host: GitHub
- URL: https://github.com/iphands/drupalcommenter
- Owner: iphands
- License: gpl-2.0
- Created: 2014-03-11T21:30:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-20T22:12:18.000Z (over 12 years ago)
- Last Synced: 2025-03-02T00:05:12.098Z (over 1 year ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Drupal Commenter
================
An API that lets you comment on Drupal nodes via ajax from a non Drupal page.
AFAIK this only works on Drupal7 and I have really only tested it on one Drupal site (patches welcome).
You must have an AMD module loader like [require.js](http://requirejs.org/) to use this and have jquery setup as a module.
##Usage
~~~
require(['drupal_commenter'], function (drupal_commenter) {
drupal_commenter.add_comment('Hey Newby here is some super awesome comment.', { node_url: '/node/1234});
});
~~~
##License
Copyright (c) 2013 Ian Page Hands. Licensed under the GPLv2 license.