-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeveloper_docs.module
More file actions
34 lines (26 loc) · 940 Bytes
/
Copy pathdeveloper_docs.module
File metadata and controls
34 lines (26 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
function developer_docs_admin() {
$form = array();
$form['developer_docs_desc'] = array(
'#type' => 'textarea',
'#title' => t('Notes about your system'),
'#default_value' => variable_get('developer_docs_desc', ''),
'#size' => 200,
'#maxlength' => 20000,
'#description' => t("Describe the things that the next developer needs to know to get up and running quickly"),
'#required' => TRUE,
);
return system_settings_form($form);
}
function developer_docs_menu() {
$items = array();
$items['admin/settings/developer_docs'] = array(
'title' => 'Developer Documentation',
'description' => 'This page is where you centralize your Drupal system documentation',
'page callback' => 'drupal_get_form',
'page arguments' => array('developer_docs_admin'),
'access arguments' => array('administer developer_docs settings'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}