You are here

function autoassignrole_install in Auto Assign Role 6

Same name and namespace in other branches
  1. 6.2 autoassignrole.install \autoassignrole_install()

Implementation of hook_install().

1 call to autoassignrole_install()
autoassignrole_update_6000 in ./autoassignrole.install

File

./autoassignrole.install, line 15
The autoassignrole.install file

Code

function autoassignrole_install() {
  drupal_install_schema('autoassignrole');
  $sql = "INSERT into {autoassignrole} (arid,value) VALUES ('%s', '%s')";
  db_query($sql, 'auto_roles', serialize(array()));
  db_query($sql, 'auto_active', 0);
  db_query($sql, 'user_active', 0);
  db_query($sql, 'user_roles', serialize(array()));
  db_query($sql, 'user_required', 0);
  db_query($sql, 'user_multiple', 0);
  db_query($sql, 'user_description', '');
  db_query($sql, 'user_title', t("Role"));
  db_query($sql, 'user_fieldset_title', t("User Roles"));
  db_query($sql, 'user_sort', 'SORT_ASC');
  db_query($sql, 'user_selection', 2);
  db_query($sql, 'page_active', 0);
  db_query($sql, 'auto_admin_active', 0);
  db_query($sql, 'node_user_register', '');
}