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 | |
* Drupal site-specific configuration file. | |
*/ | |
/** | |
* Database settings must be pulled from a separate file which will not be | |
* put into version control. | |
*/ |
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 | |
// $Id: default.settings.php,v 1.51 2010/10/11 23:49:48 dries Exp $ | |
/** | |
* @file | |
* Drupal site-specific configuration file. | |
* | |
* IMPORTANT NOTE: | |
* This file may have been set to read-only by the Drupal installation | |
* program. If you make changes to this file, be sure to protect it again |
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
/** | |
* Returns an array of rows from a query based on an indexing namespace. | |
*/ | |
function apachesolr_indexer_get_entities_to_index($namespace, $limit) { | |
$rows = array(); | |
if (variable_get('apachesolr_read_only', 0)) { | |
return $rows; | |
} | |
$last_change = variable_get('apachesolr_indexer_last_run', 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
/** | |
* Implements hook_cron(). | |
*/ | |
function apachesolr_indexer_cron() { | |
$cron_limit = variable_get('apachesolr_cron_limit', 50); | |
$rows = apachesolr_indexer_get_entities_to_index('apachesolr_search', $cron_limit); | |
apachesolr_indexer_enqueue($rows); |
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
$data = array(0 => 'data1', 1 => 'data2', 2 => 'data3'); | |
$data_table = array( | |
'#theme' => 'table', | |
'#header' => array(t('data index'), t('data value')), | |
'#empty' => t('You have no content channels for this account.'), | |
'#rows' => array(), | |
); | |
if(!empty($data)){ | |
foreach($data as $data_item_index => $data_item){ |
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
/** | |
* Form builder for the bundle configuration form. | |
* | |
* @see apachesolr_indexer_config_form_submit(). | |
*/ | |
function apachesolr_indexer_config_form() { | |
$form['bundles'] = array( | |
'#type' => 'markup', | |
'#markup' => t('Select the entity types and bundles that should be indexed.'), | |
); |
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
/Developer/D7: git clone [email protected]:bdglide/socialflow-drupal-module.git | |
Cloning into socialflow-drupal-module... | |
remote: Counting objects: 18, done. | |
remote: Compressing objects: 100% (14/14), done. | |
remote: Total 18 (delta 2), reused 18 (delta 2) | |
Receiving objects: 100% (18/18), done. | |
Resolving deltas: 100% (2/2), done. | |
/Developer/D7: ll | |
total 160 | |
drwxr-xr-x 10 jr admin 340 Sep 12 15:41 . |
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
foreach (entity_get_info() as $entity_type => $entity_info) { | |
foreach ($entity_info['bundles'] as $bundle => $bundle_info) { | |
$labels[$entity_type][$bundle] = !empty($bundle_info['label']) ? $bundle_info['label'] : FALSE; | |
} | |
} |
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
<VirtualHost *:80> | |
ServerAdmin "[email protected]" | |
DocumentRoot "/Developer/D7/docroot" | |
ServerAlias drupal7.local | |
ErrorLog "/var/log/apache2/drupal7.local_log" | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin "[email protected]" | |
DocumentRoot "/Developer/DOE/energy.gov/docroot" |
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
# | |
# Apache/PHP/Drupal settings: | |
# | |
# Protect files and directories from prying eyes. | |
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$"> | |
Order allow,deny | |
</FilesMatch> | |
# Don't show directory listings for URLs which map to a directory. |