You are here

function scald_install in Scald: Media Management made easy 7

Same name and namespace in other branches
  1. 6 scald.install \scald_install()

Implements hook_install().

Installs the schema and then ensure that the hooks implemented by Scald Core will fire before those implemented by any Scald Providers (a direct modification of the {system} table is the only way to accomplish this).


./scald.install, line 253


function scald_install() {

  // Get Scald hooks to run earlier than other modules.
  db_query("UPDATE {system} SET weight = -50 WHERE name = 'scald'");

  // By default, the context export will not be handled by Features.
  variable_set('scald_switch_feature_export', FALSE);