You are here

function _scanner_get_selected_tables_map in Search and Replace Scanner 7

Same name and namespace in other branches
  1. 5.2 scanner.module \_scanner_get_selected_tables_map()
  2. 6 scanner.module \_scanner_get_selected_tables_map()

Get the fields that have been selected for scanning.

Return value

map of selected fields and tables.

1 call to _scanner_get_selected_tables_map()
scanner_execute in ./scanner.module
Handles the actual search and replace.

File

./scanner.module, line 1291
Search and Replace Scanner - works on all nodes text content.

Code

function _scanner_get_selected_tables_map() {
  $tables_map = _scanner_get_all_tables_map();
  foreach ($tables_map as $i => $item) {
    $key = 'scanner_' . $item['field'] . '_' . $item['table'] . '_' . $item['type'];
    if (!variable_get($key, TRUE)) {
      unset($tables_map[$i]);
    }
  }
  return $tables_map;
}