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
$query = $call_args['query']; | |
if(!strlen($query)) return; | |
$q = strtolower($query); | |
$qArray = explode(" ", trim($q, ' "') ); | |
$segments = array(); | |
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
reload schema and query-side synonyms without restarting solr | |
http://www.example.com/solr/admin/cores?action=RELOAD&core=mycore |
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 | |
$entity = node_load(33); | |
echo "on load: {$entity->field_test1[LANGUAGE_NONE][0]['value']}<br/>"; | |
$entity->field_test1[LANGUAGE_NONE][0]['value']='test'.rand(10,100); | |
echo "before save: {$entity->field_test1[LANGUAGE_NONE][0]['value']}<br/>"; | |
$entity2=new stdClass; | |
$entity2->nid=$entity->nid; | |
$entity2->vid=$entity->vid; |
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
mysql -uroot -p -e "CREATE DATABASE mysite" | |
drush dl drupal-7.x | |
mv local.mysite.dev | |
cd local.mysite.dev | |
drush site-install standard --account-name=admin --account-pass=admin --db-url=mysql://YourMySQLUser:RandomPassword@localhost/mysite |
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
sudo mysql_secure_installation |
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
diff --git a/superfish.module b/superfish.module | |
index f994eaa..d884ed2 100644 | |
--- a/superfish.module | |
+++ b/superfish.module | |
@@ -1753,6 +1753,18 @@ function theme_superfish($variables) { | |
$menu = i18n_menu_localize_tree($menu); | |
} | |
+ if(module_exists('og')) | |
+ { |
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
try | |
{ | |
} | |
catch(EntityMetadataWrapperException $exc) | |
{ | |
watchdog( | |
'MODULE_NAME', | |
'See ' . __FUNCTION__ . '() <pre>' . $exc->getTraceAsString() . '</pre>', | |
NULL, WATCHDOG_ERROR |
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
/* Full Version */ | |
$view->set_display($display_id); | |
$view->init_handlers(); | |
$view->set_exposed_input($exposed_filters); | |
$exposed_form_state = array( | |
'view' => &$view, | |
'display' => &$view->display[$display_id], | |
'exposed_form_plugin' => $view->display_handler->get_plugin('exposed_form'), |
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
/* | |
* version 0.0.1 | |
*/ | |
(function( $, undefined ) { | |
$.widget("ui.dragslider", $.ui.slider, { | |
options: $.extend({},$.ui.slider.prototype.options,{rangeDrag:false}), | |
_create: function() { |
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
diff --git a/workbench_scheduler.module b/workbench_scheduler.module | |
index 50a1e19..65f18ba 100644 | |
--- a/workbench_scheduler.module | |
+++ b/workbench_scheduler.module | |
@@ -1146,6 +1146,32 @@ function workbench_scheduler_schedules_exist() { | |
} | |
/** | |
+ * Check for the existence of a transition from one state to another. | |
+ * |