Created
February 21, 2014 21:55
-
-
Save kevinchampion/9144337 to your computer and use it in GitHub Desktop.
ISU faculty feature module update hooks
This file contains hidden or 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 | |
/** | |
* Change the weight of this module. | |
*/ | |
function isu_faculty_update_7000() { | |
db_query("UPDATE {system} SET weight = 88 WHERE name = 'isu_faculty'"); | |
} | |
/** | |
* Make sure the faculty search index gets setup properly. | |
* | |
* When enabling the feature module on a new site, the index database tables and | |
* configurations aren't setup properly. This ensures that that step isn't | |
* skipped. | |
*/ | |
function isu_faculty_update_7001() { | |
$index = search_api_index_load('faculty'); | |
$index->original = new SearchApiIndex(); | |
search_api_search_api_index_update($index); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment