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
$spec = array( | |
'description' => 'The type of this file.', | |
'type' => 'varchar', | |
'length' => 50, | |
'not null' => TRUE, | |
// If the FILE_TYPE_NONE constant ever changes, then change the value here | |
// too, and add an update function to deal with existing records. The | |
// constant isn't used here, because there may be cases where this function | |
// runs without the module file loaded. | |
'default' => 'undefined', |
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
UPDATE users SET mail = CONCAT(name, '@localhost'), init = CONCAT(name, '@localhost'), pass = '$S$Cd059Vsxc8berFeg6hspaa7ejx2bSxyUisvCbT4h9o8XIgSUtPKz'; | |
UPDATE comment SET mail = CONCAT(name, '@localhost'); | |
UPDATE authmap SET authname = CONCAT(aid, '@localhost'); | |
UPDATE webform_submitted_data set data='scrubbed'; | |
TRUNCATE accesslog; | |
TRUNCATE cache; | |
TRUNCATE cache_block; | |
TRUNCATE cache_bootstrap; |
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
require 'fileutils' | |
on_stylesheet_saved do |file| | |
if File.exists?(file) && File.basename(file) == "nsw_styles.css" | |
puts "Moving: #{file}" | |
FileUtils.mv(file, File.dirname(file) + "/../agov_nsw/css/styles.css") | |
end | |
end |
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 | |
/** | |
* Trim all odd characters. | |
* | |
* Character Decimal Use | |
* "\0" 0 Null Character | |
* "\t" 9 Tab | |
* "\n" 10 New line | |
* "\x0B" 11 Vertical Tab | |
* "\r" 13 New Line in Mac |
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 | |
* Contains an example PageController. | |
*/ | |
namespace Drupal\ghost_examples\Page; | |
use Drupal\ghost\Page\PageController; | |
use Drupal\ghost\Page\PageControllerInterface; |
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 | |
* Page Controller example for Ghost | |
* | |
* @license GPL v2 http://www.fsf.org/licensing/licenses/gpl.html | |
* @author Chris Skene chris at previousnext dot com dot au | |
* @copyright Copyright(c) 2014 Previous Next Pty Ltd | |
*/ |
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 | |
* Contains a FormExample | |
* | |
* @license GPL v2 http://www.fsf.org/licensing/licenses/gpl.html | |
* @author Chris Skene chris at previousnext dot com dot au | |
* @copyright Copyright(c) 2014 Previous Next Pty Ltd | |
*/ |
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 | |
/** | |
* How to call a form within a function. | |
*/ | |
function ghost_examples_form_controller() { | |
$form = drupal_get_form('ghost_form', 'Drupal\ghost_examples\Form\ExampleForm'); | |
$output = drupal_render($form); | |
return $output; |
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 | |
* Contains a BlockPluginExample | |
* | |
* @license GPL v2 http://www.fsf.org/licensing/licenses/gpl.html | |
* @author Chris Skene chris at previousnext dot com dot au | |
* @copyright Copyright(c) 2014 Previous Next Pty Ltd | |
*/ |
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 | |
* Examples for the Ghost Logger. | |
* | |
* @license GPL v2 http://www.fsf.org/licensing/licenses/gpl.html | |
* @author Chris Skene chris at previousnext dot com dot au | |
* @copyright Copyright(c) 2014 Previous Next Pty Ltd | |
*/ |
OlderNewer