https://github.com/phase2/cms_api
https://github.com/phase2/cms_api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phase2/cms_api
- Owner: phase2
- Created: 2012-04-10T19:09:36.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-04-10T19:13:49.000Z (over 14 years ago)
- Last Synced: 2025-01-12T17:36:34.270Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 89.8 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
The CMS API module provides a very simple JSON API into drupal. This was used to pull in parts of drupal into another site.
Return JSON format:
{
'status': TRUE/FALSE
'data': {} Data from endpoint
'css': '' CSS that is included in the html page @see drupal_get_css()
'js': '' JS that is included in the html page @see drupal_get_js()
'css_array': {} The CSS render array. @see drupal_add_css()
'js_array': {} The JS render array. @see drupal_add_js()
}
Current endpoints:
cms-api/block
- A list of blocks
cms-api/block//
- The Block html
cms-api/region
- A list of regions
cms-api/region/
- The HTML for the region
cms-api/section/
- The HTML for the
from the sites home page
- For example, getting the header region since lots of this is hard coded in page.tpl.php