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
# Protect files and directories from prying eyes. | |
RedirectMatch 404 "\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$" | |
# Disallow various other files | |
RedirectMatch 404 (README\.txt|INSTALL\.txt|CHANGELOG\.txt|COPYRIGHT\.txt|INSTALL\.mysql\.txt|INSTALL\.pgsql\.txt|LICENSE\.txt|MAINTAINERS\.txt|UPGRADE\.txt) | |
# Disallow admin paths | |
Redirect 404 /admin | |
Redirect 404 /scripts | |
Redirect 404 /profile |
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 | |
/** | |
* Invokes a hook in all enabled modules that implement it. | |
* | |
* @param $hook | |
* The name of the hook to invoke. | |
* @param ... | |
* Arguments to pass to the hook. | |
* | |
* @return |
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
$entity_type = 'node'; | |
$entity_id = mynodeid; | |
$table = apachesolr_get_indexer_table($entity_type); | |
$env_id = apachesolr_default_environment(); | |
$query = db_select($table, 'aie') | |
->fields('aie') | |
->condition('aie.entity_id', $entity_id, '='); | |
if ($table == 'apachesolr_index_entities') { |