Skip to content

Instantly share code, notes, and snippets.

@kevinchampion
Created February 21, 2014 21:55
Show Gist options
  • Save kevinchampion/9144337 to your computer and use it in GitHub Desktop.
Save kevinchampion/9144337 to your computer and use it in GitHub Desktop.
ISU faculty feature module update hooks
<?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