This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Install, update and uninstall functions for the d8module module. | |
*/ | |
function d8module_schema_otherdb() { | |
$schema['mytable'] = array( | |
'description' => 'My table description', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Install, update and uninstall functions for the d7module module. | |
*/ | |
function d7module_schema_shared() { | |
$schema['mytable'] = array( | |
'description' => 'My table description.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = OpenID Connect Restrict User Register | |
description = Uses the OpenID Connect API to block new account creation if registration is restricted to administrators. Requires #2559543 patch. | |
core = 7.x | |
version = 7.x-1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Consume a Drupal menu resource provided by Services and Services Menu modules | |
// and render it in an AngularJS app. | |
// | |
// A patch to Services Menu is required, see: https://www.drupal.org/node/2407135 | |
'use strict'; | |
var app = angular.module('app', [ | |
'restangular', | |
'ngRoute', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = Services Node Alias to System Path | |
description = Uses the Services API to convert requests containing a node path alias to a system path (e.g., 'node/5'). | |
core = 7.x | |
version = 7.x-1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Basic Restangular-ized search front end for RESTful Search API (Drupal) | |
* https://github.com/RESTful-Drupal/restful_search_api | |
* | |
* To accompany restful_search_api_example (example module). | |
*/ | |
var app = angular.module('app', ['ngSanitize', 'restangular']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Preprocess variables for node.tpl.php (and derivatives). | |
* | |
* Strips Media (media module) tags from teasers in article content. | |
* Workaround until we have a filter: https://www.drupal.org/node/2165457 | |
*/ | |
function MYTHEME_preprocess_node(&$variables) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<title></title> | |
<link rel="stylesheet" href="styles.css"> | |
<script src="scripts.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set your API endpoint below! | |
'use strict'; | |
var app = angular.module('app', ['prismic.io']) | |
.config(['PrismicProvider', function(PrismicProvider) { | |
PrismicProvider.setApiEndpoint('https://[YOUR SUBDOMAIN].prismic.io/api'); | |
PrismicProvider.setLinkResolver(function(ctx, doc) { | |
return 'document/' + doc.id + '/' + doc.slug + ctx.maybeRefParam; |
OlderNewer