YUI Common parameters', array('!link' => l('admin/build/block', 'admin/build/block'))); break; } return $output; } /* * Settings form as implemented by hook_menu */ function yui_admin_settings() { $form['yui_source'] = array( '#type' => 'checkbox', '#title' => t('Consume YUI package from Local Server.'), '#description' => t('if checked the YUI library should be available under modules/yui/lib'), '#default_value' => variable_get('yui_source',0), ); return system_settings_form($form); } function yui_menu($may_cache) { if ($may_cache) { $items[] = array( 'path' => 'admin/settings/yui', 'title' => t('YUI Common Settings'), 'callback' => 'drupal_get_form', 'callback arguments' => 'yui_admin_settings', 'access' => user_access('access administration pages'), 'type' => MENU_NORMAL_ITEM, ); } return $items; } ?>