/
photo500px.admin.inc
34 lines (27 loc) · 1 KB
/
photo500px.admin.inc
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
/**
* Settings form for 500px api module
*/
function photo500px_settings_form(){
$form = array();
$form['photo500px_cosumer_key'] = array(
'#title' => t('500px Consumer Key'),
'#type' => 'textfield',
'#description' => t('<p>Enter the 500px cosumer key.Get the key from <a href="http://www.developers.500px.com/">500px</a></p>'),
'#default_value' => variable_get('photo500px_cosumer_key', '')
);
$form['photo500px_username'] = array(
'#title' => t('500px Username'),
'#type' => 'textfield',
'#description' => t('<p>Enter the username of 500px.</p>'),
'#default_value' => variable_get('photo500px_username', '')
);
$form['photo500px_count'] = array(
'#title' => t('How many Photo to display?'),
'#type' => 'textfield',
'#description' => t('<p>Enter the number of photo to display.</p>'),
'#default_value' => variable_get('photo500px_count', '')
);
$form = system_settings_form($form);
return $form;
}