/[drupal]/contributions/modules/compact_forms/compact_forms.module
ViewVC logotype

Diff of /contributions/modules/compact_forms/compact_forms.module

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

revision 1.8, Thu Aug 6 20:27:22 2009 UTC revision 1.9, Wed Sep 30 03:52:36 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: compact_forms.module,v 1.7 2009/05/06 23:31:37 sun Exp $  // $Id: compact_forms.module,v 1.8 2009/08/06 20:27:22 sun Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 17  function compact_forms_help($path, $arg) Line 17  function compact_forms_help($path, $arg)
17  }  }
18    
19  /**  /**
20   * Implementation of hook_perm().   * Implementation of hook_permission().
21   */   */
22  function compact_forms_perm() {  function compact_forms_permission() {
23    return array('administer Compact Forms');    return array(
24        'administer Compact Forms' => array(
25          'title' => t('Administer Compact Forms'),
26          'description' => t('Configure forms to display compact and their behavior.'),
27        ),
28      );
29  }  }
30    
31  /**  /**
32   * Implementation of hook_menu().   * Implementation of hook_menu().
33   */   */
34  function compact_forms_menu() {  function compact_forms_menu() {
35    $items['admin/settings/compact_forms'] = array(    $items['admin/config/content/compact_forms'] = array(
36      'title' => 'Compact Forms',      'title' => 'Compact Forms',
37      'description' => 'Configure Compact Forms settings.',      'description' => 'Configure Compact Forms settings.',
38      'page callback' => 'drupal_get_form',      'page callback' => 'drupal_get_form',
# Line 125  function _compact_forms_include_js($css_ Line 130  function _compact_forms_include_js($css_
130      'compactForms' => array(      'compactForms' => array(
131        'forms' => $css_ids,        'forms' => $css_ids,
132        'stars' => (int) variable_get('compact_forms_stars', 2),        'stars' => (int) variable_get('compact_forms_stars', 2),
       'colons' => (int) variable_get('compact_forms_colons', 0),  
133      ),      ),
134    );    );
135    drupal_add_js($settings, 'setting');    drupal_add_js($settings, 'setting');

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.2