function photos_search_admin in Album Photos 7.3
Implements hook_search_admin().
File
- ./
photos.module, line 2972 - Implementation of photos.module.
Code
function photos_search_admin() {
$form['photos_search_admin'] = array(
'#type' => 'fieldset',
'#title' => t('Administer Photos Search Module'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
'#tree' => FALSE,
'#action' => 'photos_search_admin_submit',
'#access' => user_access('administer search'),
'#weight' => 20,
);
$form['photos_search_admin']['photos_search_reindex_old_photos'] = array(
'#title' => t('Reindex Old Photos'),
'#description' => t('Control whether or not to reindex old
photos. If true, once all new photos are indexed, the
process starts over with the oldest photos. This catches
any changes to titles or descriptions post original indexing.'),
'#type' => 'radios',
'#options' => array(
'Reindex old photos',
'Do not reindex old photos',
),
'#default_value' => variable_get('photos_search_reindex_old_photos', 0),
'#required' => FALSE,
'#disabled' => FALSE,
);
return $form;
}