Skip to content

Instantly share code, notes, and snippets.

@NL9
NL9 / drushrc.php
Created February 20, 2016 13:37
drushrc.php for drush sql-dump
<?php
$options['structure-tables']['common'] = array(
'cache',
'cache_*',
'ctools_css_cache',
'ctools_object_cache',
'sessions',
'watchdog',
);
$options['structure-tables-key'] = 'common';
@NL9
NL9 / simpleantispam-change_name.patch
Created February 14, 2016 14:52
simpleantispam-change_name.patch
diff --git a/simpleantispam.module b/simpleantispam.module
index 3f0eded..b2493b5 100644
--- a/simpleantispam.module
+++ b/simpleantispam.module
@@ -39,13 +39,13 @@ function simpleantispam_form_alter(&$form, &$form_state, $form_id) {
$forms = variable_get('simpleantispam_forms', array());
if (isset($forms[$form_id])) {
- $form['smplntspm1'] = array(
+ $form['smplntspm_1'] = array(
@NL9
NL9 / igromir.fotoezh.ru_pr.xml
Created October 11, 2015 13:17
igromir.fotoezh.ru_pr.xml for IID
<?xml version="1.0" encoding="windows-1251"?>
<Plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PluginName>igromir.fotoezh.ru_pr</PluginName>
<PageURL />
<PreviewLink />
<ImageLink />
<ImgLnkUseDefaultReferer>true</ImgLnkUseDefaultReferer>
<ImgLnkDontGetSize>false</ImgLnkDontGetSize>
<ImgLnkLogin />
<ImgLnkPassword />
@NL9
NL9 / igromir.fotoezh.ru.xml
Created October 11, 2015 13:17
igromir.fotoezh.ru.xml plugin for IID
<?xml version="1.0" encoding="windows-1251"?>
<Plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PluginName>igromir.fotoezh.ru</PluginName>
<PageURL>http://igromir.fotoezh.ru/photos/56/</PageURL>
<PreviewLink>http://igromir.fotoezh.ru/photos/56/upload/ib_Fotoezh_Project_dir/b8fe17f52c/aa18669d94/b4f126bbfe/igromir_newlogo_cmyk (1).png</PreviewLink>
<ImageLink>http://igromir.fotoezh.ru/photos/56/</ImageLink>
<ImgLnkUseDefaultReferer>true</ImgLnkUseDefaultReferer>
<ImgLnkDontGetSize>false</ImgLnkDontGetSize>
<ImgLnkLogin />
<ImgLnkPassword />