/[drupal]/contributions/modules/storm/stormattribute/stormattribute.module
ViewVC logotype

Diff of /contributions/modules/storm/stormattribute/stormattribute.module

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

revision 1.4.4.4, Mon Aug 25 09:04:44 2008 UTC revision 1.4.4.5, Mon Sep 1 08:50:20 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stormattribute.module,v 1.4.4.3 2008/07/23 19:37:48 robertogerola Exp $  // $Id: stormattribute.module,v 1.4.4.4 2008/08/25 09:04:44 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 10  function stormattribute_help($path, $arg Line 10  function stormattribute_help($path, $arg
10    
11    switch ($path) {    switch ($path) {
12      case "admin/help#stormattribute":      case "admin/help#stormattribute":
13        $output = '<p>'.  t("Provides attributes support for Storm") .'</p>';        $output = '<p>'.  storm_t("Provides attributes support for Storm") .'</p>';
14        break;        break;
15    }    }
16    
# Line 28  function stormattribute_perm() { Line 28  function stormattribute_perm() {
28    
29  function stormattribute_menu() {  function stormattribute_menu() {
30    $items['storm/attributes'] = array(    $items['storm/attributes'] = array(
31              'title' => t('Attributes'),              'title' => storm_t('Attributes'),
32              'description' => t('Storm Attributes'),              'description' => storm_t('Storm Attributes'),
33              'page callback' => 'stormattribute_list',              'page callback' => 'stormattribute_list',
34              'access arguments' => array('Storm attribute: access'),              'access arguments' => array('Storm attribute: access'),
35              'file' => 'stormattribute.admin.inc',              'file' => 'stormattribute.admin.inc',
36              'type' => MENU_NORMAL_ITEM);              'type' => MENU_NORMAL_ITEM);
37    $items['storm/attributes/add'] = array(    $items['storm/attributes/add'] = array(
38              'title' => t('Add a new attribute'),              'title' => storm_t('Add a new attribute'),
39              'description' => t('Storm Attributes'),              'description' => storm_t('Storm Attributes'),
40              'page callback' => 'drupal_get_form',              'page callback' => 'drupal_get_form',
41              'page arguments' => array('stormattribute_add'),              'page arguments' => array('stormattribute_add'),
42              'access arguments' => array('Storm attribute: add'),              'access arguments' => array('Storm attribute: add'),
43              'file' => 'stormattribute.admin.inc',              'file' => 'stormattribute.admin.inc',
44              'type' => MENU_CALLBACK);              'type' => MENU_CALLBACK);
45    $items['storm/attributes/edit/%'] = array(    $items['storm/attributes/edit/%'] = array(
46              'title' => t('Edit an attribute'),              'title' => storm_t('Edit an attribute'),
47              'description' => t('Storm Attributes'),              'description' => storm_t('Storm Attributes'),
48              'page callback' => 'drupal_get_form',              'page callback' => 'drupal_get_form',
49              'page arguments' => array('stormattribute_edit', 3),              'page arguments' => array('stormattribute_edit', 3),
50              'access arguments' => array('Storm attribute: edit'),              'access arguments' => array('Storm attribute: edit'),
51              'file' => 'stormattribute.admin.inc',              'file' => 'stormattribute.admin.inc',
52              'type' => MENU_CALLBACK);              'type' => MENU_CALLBACK);
53    $items['storm/attributes/delete/%'] = array(    $items['storm/attributes/delete/%'] = array(
54              'title' => t('Delete an attribute'),              'title' => storm_t('Delete an attribute'),
55              'description' => t('Storm Attributes'),              'description' => storm_t('Storm Attributes'),
56              'page callback' => 'drupal_get_form',              'page callback' => 'drupal_get_form',
57              'page arguments' => array('stormattribute_delete', 3),              'page arguments' => array('stormattribute_delete', 3),
58              'access arguments' => array('Storm attribute: delete'),              'access arguments' => array('Storm attribute: delete'),
59              'file' => 'stormattribute.admin.inc',              'file' => 'stormattribute.admin.inc',
60              'type' => MENU_CALLBACK);              'type' => MENU_CALLBACK);
61    $items['storm/attributes/domain/autocomplete'] = array(    $items['storm/attributes/domain/autocomplete'] = array(
62              'title' => t('List of attributes'),              'title' => storm_t('List of attributes'),
63              'description' => t('Storm Attributes'),              'description' => storm_t('Storm Attributes'),
64              'page callback' => '_stormattribute_domain_autocomplete',              'page callback' => '_stormattribute_domain_autocomplete',
65              'page arguments' => array(4),              'page arguments' => array(4),
66              'access arguments' => array('Storm attribute: access'),              'access arguments' => array('Storm attribute: access'),

Legend:
Removed from v.1.4.4.4  
changed lines
  Added in v.1.4.4.5

  ViewVC Help
Powered by ViewVC 1.1.2