custom_search_blocks.admin.inc in Custom Search 7
Same filename and directory in other branches
Admin settings for custom search
File
modules/custom_search_blocks/custom_search_blocks.admin.incView source
<?php
/**
* @file
* Admin settings for custom search
*/
/**
* Implements hook_help().
*/
function custom_search_blocks_help($path, $arg) {
switch ($path) {
case 'admin/config/search/custom_search/blocks':
$output = t('If you want custom search blocks, enable them here. Then go to the <a href="@link">block page</a> to place them in a region.', array(
'@link' => url('admin/build/block'),
));
break;
}
return $output;
}
function custom_search_blocks_admin() {
$form['custom_search_blocks_number'] = array(
'#type' => 'textfield',
'#title' => t('Number of blocks'),
'#size' => 2,
'#default_value' => variable_get('custom_search_blocks_number', 1),
);
return system_settings_form($form);
}
Functions
Name | Description |
---|---|
custom_search_blocks_admin | |
custom_search_blocks_help | Implements hook_help(). |