source: sipes/modules_contrib/services/auth/services_oauth/services_oauth.install

stableversion-3.0
Last change on this file was 3959b2a, checked in by planificacion <planificacion@…>, 8 años ago

Se agregaron los modulos para permitir el despliegue de servicios web (SOAP)

  • Propiedad mode establecida a 100644
File size: 1.2 KB
Línea 
1<?php
2/**
3 * @file
4 * Install, update and uninstall functions for the services_oauth module.
5 */
6
7/**
8 * Implementation of hook_install().
9 */
10function services_oauth_install() {
11  drupal_install_schema('services_oauth');
12}
13
14/**
15 * Implementation of hook_uninstall().
16 */
17function services_oauth_uninstall() {
18  drupal_uninstall_schema('services_oauth');
19}
20
21/**
22 * Implementation of hook_schema().
23 */
24function services_oauth_schema() {
25  $schema = array();
26
27  return $schema;
28}
29
30function services_oauth_update_6001() {
31  $ret = array();
32
33  // Rename the authentication and authorization settings variables
34  $authentication = variable_get('services_oauth_authentication_levels', array());
35  $authorization = variable_get('services_oauth_authorization_settings', array());
36  variable_del('services_oauth_authentication_levels');
37  variable_del('services_oauth_authorization_settings');
38  variable_set('services_oauth_authentication_levels_', $authentication);
39  variable_set('services_oauth_authorization_settings_', $authorization);
40
41  return $ret;
42}
43
44function services_oauth_update_6200() {
45  variable_del('services_oauth_authentication_levels_');
46  variable_del('services_oauth_authorization_settings_');
47
48  return array();
49}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.