Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:

root / drupal-module / auquotidien.module @ 0bb989f9

1
<?php
2

    
3
function auquotidien_perm() {
4
  return array('access au quotidien content');
5
}
6

    
7
function auquotidien_theme() {
8
  return array(
9
    'auquotidien' => array(
10
      'arguments' => array(),
11
      'template' => 'auquotidien',
12
      'file' => 'auquotidien.theme.inc',
13
    ),
14
  );
15
}
16

    
17
function auquotidien_menu() {
18
  $items['admin/settings/auquotidien'] = array(
19
    'title' => 'Au quotidien',
20
    'description' => 'Control the embedding of Au quotidien.',
21
    'page callback' => 'drupal_get_form',
22
    'page arguments' => array('auquotidien_admin_settings'),
23
    'access arguments' => array('administer site configuration'),
24
    'file' => 'auquotidien.admin.inc',
25
    'type' => MENU_NORMAL_ITEM,
26
  );
27
  $items['auquotidien'] = array(
28
    'title' => 'Au quotidien',
29
    'description' => 'Display Au quotidien content.',
30
    'page callback' => 'auquotidien_page',
31
    'access arguments' => array('access au quotidien content'),
32
    'type' => MENU_SUGGESTED_ITEM,
33
  );
34

    
35
  return $items;
36
}
37

    
38
function auquotidien_page() {
39
  drupal_set_title(check_plain(variable_get('auquotidien_page_title', t('Au quotidien'))));
40

    
41
  if (variable_get('auquotidien_css', 0) != 1) {
42
    drupal_add_css(drupal_get_path('module', 'auquotidien') .'/auquotidien.css');
43
  }
44

    
45
  return theme('auquotidien');
46
}
47

    
48
?>
(7-7/9)