You are here

function scald_index_rebuild_confirm_form in scald_index 7

Confirmation form for scald index rebuilding

1 string reference to 'scald_index_rebuild_confirm_form'
scald_index_menu in ./scald_index.module
Implements hook_menu().

File

./scald_index.module, line 370

Code

function scald_index_rebuild_confirm_form($form, &$form_state) {
  $text = array(
    t('Delete and rebuild scald index.'),
    t('Do you really want to rebuild this index?'),
    t('This will delete the complete scald index and rebuilt it. This action cannot be undone.'),
    t('The index has been successfully rebuilt.'),
  );
  $form = array(
    'message' => array(
      '#type' => 'value',
      '#value' => $text[3],
    ),
  );
  $desc = "<h3>{$text[1]}</h3><p>{$text[2]}</p>";
  return confirm_form($form, $text[0], "admin/structure/scald/atoms-index", $desc);
}