You are here

sms_devel.module in SMS Framework 6

File

modules/sms_devel/sms_devel.module
View source
<?php

/**
 * @file
 * Development and testing tools for Drupal SMS Framework.
 *
 * @package sms
 * @subpackage sms_devel
 */
include 'sms_devel.send_form.inc';
include 'sms_devel.virtualgw.inc';
include 'sms_devel.virtualgw.admin.inc';

/**
 * Implement hook_menu()
 *
 * @return
 *   Drupal menu item array.
 *
 * @ingroup hooks
 */
function sms_devel_menu() {
  $items = array();
  $items['admin/smsframework/devel'] = array(
    'title' => 'Devel',
    'description' => 'Development and testing tools.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_devel_send_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
  );
  $items['admin/smsframework/devel/send_form'] = array(
    'title' => 'Test send form',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/smsframework/devel/virtualgw'] = array(
    'title' => 'Virtual gateway',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sms_devel_virtualgw_form',
      NULL,
    ),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => -9,
  );
  $items['admin/smsframework/devel/virtualgw/send'] = array(
    'page callback' => 'sms_devel_virtualgw_ahah_send',
    //'page arguments'   => array(NULL),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/smsframework/devel/virtualgw/getactivity'] = array(
    'page callback' => 'sms_devel_virtualgw_js_getactivity',
    //'page arguments'   => array(NULL),
    'access arguments' => array(
      'administer smsframework',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}

/**
 * Implement hook_gateway_info()
 *
 * @return
 *   SMS Franework gateway info array
 *
 * @ingroup hooks
 */
function sms_devel_gateway_info() {
  return array(
    'virtualgw' => array(
      'name' => 'Devel virtual gateway',
      'send' => 'sms_devel_virtualgw_send',
      'configure form' => 'sms_devel_virtualgw_settings_form',
    ),
  );
}

Functions

Namesort descending Description
sms_devel_gateway_info Implement hook_gateway_info()
sms_devel_menu Implement hook_menu()