| 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 |
| 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', |
| 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'); |