You are here

function advpoll_install in Advanced Poll 8

Same name and namespace in other branches
  1. 5 advpoll.install \advpoll_install()
  2. 6.3 advpoll.install \advpoll_install()
  3. 6 advpoll.install \advpoll_install()
  4. 6.2 advpoll.install \advpoll_install()
  5. 7.3 advpoll.install \advpoll_install()
  6. 7 advpoll.install \advpoll_install()
  7. 7.2 advpoll.install \advpoll_install()

implements hook_install

File

./advpoll.install, line 44

Code

function advpoll_install() {

  // remove primary key lock on poll vote table so that other vote types can be
  // recorded.
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->dropPrimaryKey('poll_vote');
}