/[drupal]/contributions/modules/acquia_connector/acquia_spi/acquia_spi.module
ViewVC logotype

Diff of /contributions/modules/acquia_connector/acquia_spi/acquia_spi.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2 by pwolanin, Tue Dec 30 17:05:34 2008 UTC revision 1.3 by pwolanin, Fri Nov 20 15:38:59 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: acquia_spi.module,v 1.1 2008/12/30 16:51:46 pwolanin Exp $  // $Id: acquia_spi.module,v 1.2.2.1 2009/11/20 15:36:30 pwolanin Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 32  function acquia_spi_cron() { Line 32  function acquia_spi_cron() {
32    $interval = variable_get('acquia_spi_cron_interval', 8*60*60);    $interval = variable_get('acquia_spi_cron_interval', 8*60*60);
33    $now = time();    $now = time();
34    if ($now - $last > $interval) {    if ($now - $last > $interval) {
35      acquia_spi_send();      acquia_spi_send_profile_info();
36      variable_set('acquia_spi_cron_last', $now);      variable_set('acquia_spi_cron_last', $now);
37    }    }
38  }  }
# Line 49  function acquia_spi_form_acquia_agent_se Line 49  function acquia_spi_form_acquia_agent_se
49   */   */
50  function acquia_spi_agent_settings_submit($form, &$form_state) {  function acquia_spi_agent_settings_submit($form, &$form_state) {
51    // Send information as soon as the key/identifier pair is submitted.    // Send information as soon as the key/identifier pair is submitted.
52    acquia_spi_send();    acquia_spi_send_profile_info();
53  }  }
54    
55  /**  /**
56   * Send site profile information to Acquia Network via XML-RPC.   * Send site profile information to Acquia Network via XML-RPC.
57   */   */
58  function acquia_spi_send() {  function acquia_spi_send_profile_info() {
59    // Do nothing unless we have credentials.    // Do nothing unless we have credentials.
60    if (acquia_agent_has_credentials()) {    if (acquia_agent_has_credentials()) {
61      $spi = acquia_spi_get();      $spi = acquia_spi_get();

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.3