fields( array( 'weight' => 1, ) ) ->condition('name', 'location_addanother') ->condition('type', 'module') ->execute(); } /** * Implementshook_uninstall(). */ function location_addanother_uninstall() { $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_addanother_%'")->fetchCol(); foreach ($result as $row) { variable_del($row->name); } }