function media_library_admin in Media Library 6
Main settings page
1 string reference to 'media_library_admin'
- media_library_menu in ./
media_library.module - Implementation of hook_menu()
File
- ./
media_library.admin.inc, line 11 - Administration functions
Code
function media_library_admin($form_state) {
$form = array();
$form['general'] = array(
'#type' => 'fieldset',
'#title' => t('General Settings'),
'#collapsible' => TRUE,
);
$form['general']['media_library_limit'] = array(
'#type' => 'textfield',
'#title' => t('Number of items per page'),
'#description' => t('When browsing media. Number of elements per page'),
'#size' => 10,
'#maxlength' => 10,
'#default_value' => variable_get('media_library_limit', MEDIA_LIBRARY_LIMIT),
);
// Per media-type settings are Local Tabs (look into hook_menu)
// Use hook_media_types to declare your settings function
return system_settings_form($form);
}